one test case is not passing but i think i have written right code.
link for the code : https://ide.codingblocks.com/s/199470
Wrong answer verdict
@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.
@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.