News for hackers. Stuff that matters.
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!
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...somewhere
Re:Trolling homework questions - sorting by DanBC on Saturday December 28, 2013 @04:53PM (#6976795)
I love this answer and it's probably worth creating an account for you to post it.
Re:Trolling homework questions - sorting by lstamour on Friday December 27, 2013 @09:32PM (#6973602)
Ooh, that's the best answer I've seen yet. Perfect!