Debug my code please!

Code-:Solution: 50318028 | CodeChef
Question-:Contest Page | CodeChef

1 Like

Here is a test case where your code fails :-

1
4 2
4 3 2 1

Your O/P :- 3
Correct O/P :- 0
I gues you can debug now .

2 Likes

Thanks :slight_smile: