What is the best-case time complexity of counting sort?

Sorting Algorithms Questions



80 Short 66 Medium 49 Long Answer Questions Question Index

What is the best-case time complexity of counting sort?

The best-case time complexity of counting sort is O(n + k), where n is the number of elements to be sorted and k is the range of the input values.