We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
For those who stumbled into the same issue as me, make sure that you understand what a frequency array is first, and the proper way to create one, otherwise you will bang your head into a wall over this problem. I ran into issues because I didn't realize it is supposed to be size 100, for every single case. I was making it the same size as the size as the input array.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Counting Sort 1
You are viewing a single comment's thread. Return to all comments →
For those who stumbled into the same issue as me, make sure that you understand what a frequency array is first, and the proper way to create one, otherwise you will bang your head into a wall over this problem. I ran into issues because I didn't realize it is supposed to be size 100, for every single case. I was making it the same size as the size as the input array.