- How can we sort an array A of positive integers in range [0,n^2/2] in O(n) time?
- How can we sort the array if integers are in range [0,n^3/2] in O(n)?
I am new to algorithms. I would appreciate if someone explains the significance of the range along with the solution.