only one test case passed
Find the greater element | stack
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
only one test case passed
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???