Sorted Array using Recursion

I am unable to pass 1 test case. Please point out my mistake
Problme : https://hack.codingblocks.com/app/contests/1945/1378/problem
My Code : https://ide.codingblocks.com/s/369959

Hey @arunimakhanna11

	if(a[0]<=a[1] and isSorted(a+1, n-1)){  //<= here instead of <
		return true;
	}

If this resolves your query then please mark it as resolved :slight_smile:

1 Like