Possible Duplicate:
Sorting in linear time?
Suppose we are given a sequence S of n elements, each of which is an integer in the range [0,n^2-1]. Can we sort it in O(n) time?
Please dont mind me asking too many interview questions. I am just appetent.
No.
When the only precondition is an integer in the range 0-N².
Any statement involving "When N is small" invalidates any O based argument.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With