lprimeroo / DSA

Implementations of various data structures and algorithms.
MIT License
104 stars 179 forks source link

RadixSort.cpp #223

Closed SARTHAK1SINGH closed 3 days ago

SARTHAK1SINGH commented 4 years ago

The lower bound for Comparison based sorting algorithm (Merge Sort, Heap Sort, Quick-Sort .. etc) is Ω(nLogn), i.e., they cannot do better than nLogn. Counting sort is a linear time sorting algorithm that sort in O(n+k) time when elements are in range from 1 to k.