Please tell the error in the logic of the code as I am unable to pass the last two test cases.
code link: https://ide.codingblocks.com/s/95565
Test Case 2 and 3 not passing
Plz change your line :
if(a[0]<=a[1] && isSorted1(a+1,n-1))
similarly do it for other function too,
and then try to submit