[algogeeks] Re: Permutation of a string

2011-04-12 Thread baghel
subhransu.panigr...@gmail.com wrote: @baghel: The method returns the desire output. But looking for some algo which can do the same. *Subhransu Panigrahi * *Mobile:* *+91-9840931538*  *Email:* subhransu.panigr...@gmail.com On Tue, Apr 12, 2011 at 12:08 AM, baghel anant.bag

[algogeeks] Re: Permutation of a string

2011-04-11 Thread baghel
This solution is incorrect.you are only considering ordered permutations of all the rotations of the list ignoring random permutations. for eg in abcd you are missing random permutation like acbd. here we need implementation of next_permutation() function of c++. this