sorting
my friends and i were talking over lunch and this question came up
'what is the WORST possible sorting algorithm'
the worst we could find is:
1)take all the numbers
2)randomly flip then in any order
3)check and see if they are in order
any ideas of one worse than this?
'what is the WORST possible sorting algorithm'
the worst we could find is:
1)take all the numbers
2)randomly flip then in any order
3)check and see if they are in order
any ideas of one worse than this?
