getting wrong answer on testcase #2
Sorted array using recursion
@Prateek-Sengar-2189285757790830 Replace the condition in line number 7 with a[0]<=a[1] and then check
still getting the same error
@Prateek-Sengar-2189285757790830 Replace line 7 with this
if(a[0]<=a[1] && isSorted(a+1,n-1))
you had used [] with isSorted which was giving wrong answer.