1 1 vote how to sort n integers in the range 0 to n3−1 in O(n) time. Algorithms algorithms sorting + – vaishali jhalani 2.9k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
0 0 votes Counting Sort is used to sort n integers in the range 0 to n^3-1. http://www.geeksforgeeks.org/sort-n-numbers-range-0-n2-1-linear-time/ Arnab Bhadra answered Mar 22, 2017 Arnab Bhadra comment Share Follow See all 2 Comments 2 2 Comments reply sagarsanjaypawar15 commented May 15, 2024 reply Follow flag We can use Radix for that Not counting 0 0 replyShare sagarsanjaypawar15 commented May 15, 2024 reply Follow flag Counting sort will do this in O(n^3) how O(n)?? 0 0 replyShare Please log in or register to add a comment.