My code is not passing the test-cases, plz check
Histogram using stack
Hello @yath17
Inside your else statement, you need to pop all elements which are greater than the current element.
Here is the modified code
My code is not passing the test-cases, plz check
Hello @yath17
Inside your else statement, you need to pop all elements which are greater than the current element.
Here is the modified code