Counting sort in searching and sorting

pls help to debug the run error

Your code wasnt producing correct output, I have edited your code now, It is working perfectly fine, try to submit it now,

inspite of being correct test case passed i get 0 score

can the reason for getting 0 score inspite of passing correct test case is that i actually download testcases

Yes, if you will download the test cases or editorial, inspite of correct code, you will not be getting any score…