My one test case not getting passed


This is my code

@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!

https://ide.codingblocks.com/s/231424…Still not getting

@Gunit https://ide.codingblocks.com/s/231432 see this

Got my mistake…I was returning true in the end which was redundant…thanks

1 Like

@Gunit please mark your doubt as resolved