Re:Trolling homework questions - sorting
by mjcohen on Friday December 27, 2013 @07:58PM
(#6973397)
1. Generate all permutations of the input.
2. Return the permutation that is in order.
3. Profit!
[ Parent
| on HN ]
Re:Trolling homework questions - sorting
by shawabawa3 on Friday December 27, 2013 @08:25PM
(#6973446)
1. Output all permutations of the input
2. There is no step 2.
You've technically outputted the input list in order...somewhereI love this answer and it's probably worth creating an account for you to post it.