There s O(n) solution for this :)

On Fri, Jan 14, 2011 at 2:13 PM, radha krishnan
<[email protected]> wrote:
> 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
> <[email protected]> wrote:
>> wow
>> This s a spoj problem
>> http://www.spoj.pl/problems/MINMOVE/
>>
>> On Fri, Jan 14, 2011 at 1:40 PM, snehal jain <[email protected]> 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 [email protected].
>>> To unsubscribe from this group, send email to 
>>> [email protected].
>>> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to