Why in the beginning of lecture sir said that counting sort is used when you have numbers in certain range ?? We can use it just by finding out the largest number.
Regarding Counting Sort
What if a number in the array is negative, how will you able to iterate on negative index?
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.