Testcase 2 is giving wrong answer
Hey, there is a small mistake in your code, just update line:10 of your code like this
if(arr[0]<=arr[1] && isSorted(arr+1,N-1))
thank you…
Hey, there is a small mistake in your code, just update line:10 of your code like this
if(arr[0]<=arr[1] && isSorted(arr+1,N-1))
thank you…