1.

What is the average time complexity of counting sort?

A. O(n)
B. O(n+k) k=range of input
C. O(n<sup>2</sup>)
D. O(n log n)
Answer» C. O(n<sup>2</sup>)


Discussion

No Comment Found