This seems silly to ask but 1 test case is not passing. I cant figure out why.
Test cases not passing in checking sorted array by recursion
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