Time and Space complexity of Radix Sort Algorithm (original) (raw)

Last Updated : 23 Jul, 2025

The **Radix Sort Algorithm has a **time complexity of **O(n*d), where **n is the number of elements in the input array and **d is the number of digits in the largest number. The **space complexity of **Radix Sort is **O(n + k), where **n is the number of elements in the input array and k is the range of the input. This algorithm is efficient for sorting integers, especially when the range of values is not significantly larger than the number of elements to be sorted.

Complexity Radix Sort Algorithm
Time Complexity O(n*d)
Space Complexity O(n + k)

Let's explore the detailed time and space complexity of the Radix Sort Algorithm:

**Time Complexity of Radix Sort Algorithm:

**Best Case Time Complexity: O(n*d)

**Average Case Time Complexity: O(n*d)

**Worst Case Time Complexity: O(n*d)

Auxiliary Space **of Radix Sort Algorithm: