This is my code
My one test case not getting passed
@Gunit this code is not running for inputs like
1 2 3 2 5
1 2 3 6 5
try to debug it on your own, if you are unable to I’ll be happy to help!
Got my mistake…I was returning true in the end which was redundant…thanks
1 Like