NEXTLEX spoj problem
can please anyone provide the necessary hints to solve NEXTLEX on spoj using suffix array ??