1
  1. How can we sort an array A of positive integers in range [0,n^2/2] in O(n) time?
  2. 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.

Haroon S.
  • 2,363
  • 5
  • 19
  • 36

0 Answers0