What’s wrong with my code? please check.
What's wrong with my code?
@priyamthakuria27 while making the frequency array, you have made the assumption that the range of elements cannot be more than the number of elements. But that is not true. Suppose the array is
1 2 1000 then how will the code work?
hi @priyamthakuria27 in line 30, the condition for while loop should be freq[i] > 0 please correct that
already corrected. still error
@priyamthakuria27 it is running fine for me. If you are getting WA it might be because of improper formatting of the output