My Code is : https://ide.codingblocks.com/s/221988
Please tell the mistake in my code, it is not passing all test cases.
My Code is : https://ide.codingblocks.com/s/221988
Please tell the mistake in my code, it is not passing all test cases.
Consider test case:
For input:
6
3
2
1
1
2
3
3 2 1(decreasing) and 1 2 3(increasing)
So Expected Output:
true