Find the greater element | stack

only one test case passed

@Himanish hey himansh this is modified code of your code version.follow this link this.

according to your code output of testcase:
7
19 17 15 29 23 28 21 is 29 29 29 28 -1 -1 -1
but why its not : 29 29 29 -1 28 29 29???

1 Like