Timeline for Next lexicographic permutation of a list
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 5, 2017 at 14:55 | comment | added | Eman Yalpsid | @TonyChamberlain I shouldn't code or review code during the night. Sorry about that. Anyway, the codes now work, thanks for pointing out the errors. | |
Apr 5, 2017 at 14:54 | history | edited | Eman Yalpsid | CC BY-SA 3.0 |
Removed idiocy, added working codes.
|
Apr 5, 2017 at 10:44 | comment | added | Tony Chamberlain | Thanks for the response. There is a lot of great information here and was able to learn a quite a bit , especially about currying. Though I hate to say the code is bugged. Even your example. 625431->631245. Its because you only did half the pivot swap.. You stuck it in the post, but forgot to take its "swap" and stick it in the pre. I was able to fix it and add a stop (your function just takes [3,2,1] back to [1,23] | |
Apr 5, 2017 at 10:41 | vote | accept | Tony Chamberlain | ||
Apr 5, 2017 at 4:14 | review | First posts | |||
Apr 5, 2017 at 4:19 | |||||
Apr 5, 2017 at 4:12 | history | answered | Eman Yalpsid | CC BY-SA 3.0 |