Counting Sort j

its not passing Testcases

Is your code giving wrong answer or run error on submission?

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.

@souravrao3110
Please use hashmaps to store the frequencies of the various intergers. Using this method, the code will also work for negative integers. Also there is an added advantage since map stores the keys in sorted fashion.

If my explanation is able to answer your query, please mark the doubt as resolved.

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.