Test cases not passing in checking sorted array by recursion

This seems silly to ask but 1 test case is not passing. I cant figure out why.

Pls change line no 10 in your code as :
if(arr[0]<=arr[1] && sorted(arr+1, n-1))
and then try to submit your code…

1 Like