Can someone tell me whats wrong with my code. I have tried it on many test cases and it works except the one on coding blocks.
Here is the link to the code.
Counting Sort Problem with test case
hey @prajwalbakshi, just make a small change, in line 18 make while (i < 1000000) instead of while (i < 1000).
1 Like
It worked. I guess due to the 1000000 being 1000 the loop never scanned the whole array. Thanks for the help.
hey @prajwalbakshi , if your query is resolved. Please mark this doubt as resolved and rate me on the basis of your experience.
rating option will appear when to mark this doubt as resolved