@Grapher: Please look at that post carefully. The code given generates the
next lexicographical permutation - which is exactly what you want.
--
DK
--
You received this message because you are subscribed to the Google Groups
Algorithm Geeks group.
To view this discussion on the web visit
http://marknelson.us/2002/03/01/next-permutation/
will give you an answer.
(It's the best reference on that function on the internet)
--
DK
http://gplus.to/divyekapoor
http://twitter.com/divyekapoor
http://www.divye.in
--
You received this message because you are subscribed to the Google
It generates all possible permutations. That is not what i want. Just
the next permutation which is lexicographically higher.
Any ideas or just the algorithm to perform the same
On Aug 2, 4:15 pm, DK divyekap...@gmail.com wrote:
http://marknelson.us/2002/03/01/next-permutation/
will give you