Wrong answer verdict

one test case is not passing but i think i have written right code.
link for the code : https://ide.codingblocks.com/s/199470

@Debugger Please initialize the array with memset first and then perform the operation otherwise it will give you random garbage values.

i have updated the code but still it is not passing. please check it

Send me the updated code please.

https://ide.codingblocks.com/s/199470

@Debuggerr You are directly popping out the value from stack as it is not greater than it’s current element. Please check that condition once again and try it out.