One test case is failing can u please correct it cuz i am unable to trace it
@kartiksaxena2000 Consider test case:
10
7
6
5
3
2
1
Expected Output:
true
Your Output:
false
Note that if one sequence is empty and the other sequence is strictly increasing/decreasing answer must be true
could you please help me finding the error in my code
Still the same problem as i mentioned earlier. Change the logic in your code that when only one sequence is there in the input(only increasing or only decreasing) the answer is always true.