it’s failing the test case-1 i have also checked somewhere else approach is almost same pls check once
One test case failing
debug for this:
5
3
4
5
1
2
2
Correct output:
4
Your output:
-1
it’s failing the test case-1 i have also checked somewhere else approach is almost same pls check once
debug for this:
5
3
4
5
1
2
2
Correct output:
4
Your output:
-1