Posted by: Gajedi January 28, 2010
Login in to Rate this Post:
0
?
No, you can not sort in O(n) time. Sorting requires comparison and reinsertion of items, so it is almost impossible to do it in O(n) time unless you are starting off with empty or already sorted array.