Https://ide.codingblocks.com/s/261316

why its not clearing all test cases

@Aditya-Kushwaha-914550392281281
Here you don’t need to check for strictly sorted array, adjacent elements can be same. So change line 13 to if ( a[0]<=a[1] && isarraysorted(a+1,n-1))
your code will work.

@Aditya-Kushwaha-914550392281281
Please mark this doubt as resolved. You’ve got 100 score.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.