What is the time complexity of radix sort?

  • O(d * (n + b))
  • O(log n)
  • O(n log n)
  • O(n^2)
The time complexity of radix sort is O(d * (n + b)), where 'd' is the number of digits in the input numbers, 'n' is the number of elements, and 'b' is the base of the numeric representation.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *