append the string to original string and index=answer of that spoj problem now u can ouput the string from index to index+strlen(originalstring)-1
On Fri, Jan 14, 2011 at 2:12 PM, radha krishnan <radhakrishnance...@gmail.com> wrote: > wow > This s a spoj problem > http://www.spoj.pl/problems/MINMOVE/ > > On Fri, Jan 14, 2011 at 1:40 PM, snehal jain <learner....@gmail.com> wrote: >> Write the code to find lexicographic minimum in a circular array, e.g. >> for the array >> BCABDADAB, the lexicographic mininum is ABBCABDAD. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> >> > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.