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.
@marioquiroga2912 Just one correction, since all x(keys) are between 1 to 100. You don't need to allocate string ar[] of size 'n', 101 is enough and hence the limit of last for loop would also change.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
The Full Counting Sort
You are viewing a single comment's thread. Return to all comments →
@marioquiroga2912 Just one correction, since all x(keys) are between 1 to 100. You don't need to allocate string ar[] of size 'n', 101 is enough and hence the limit of last for loop would also change.