please tell what is wrong with this code, it fails on the 2nd test case!!
Sorted array - recursion and backtracking
Change line 8 to if(a[0]<=a[1] && isSorted(a+1, n-1)) and then check.
Thank you so much, it helped a lot.
please tell what is wrong with this code, it fails on the 2nd test case!!
Change line 8 to if(a[0]<=a[1] && isSorted(a+1, n-1)) and then check.
Thank you so much, it helped a lot.