https://ide.codingblocks.com/s/39483
my code for https://hack.codingblocks.com/contests/c/537/194
It is not passing 2 test cases, please let me know where I am wrong.
Thanks
https://ide.codingblocks.com/s/39483
my code for https://hack.codingblocks.com/contests/c/537/194
It is not passing 2 test cases, please let me know where I am wrong.
Thanks
Hey Apoorva, your code is not handling all the test cases.
for eg.
7
9
8
1
2
3
4
5
your output for this case is false.
but the correct output is true.
So, your code is unable to check correctly if first sequence is strictly decreasing.
ya, got it, I tried but i am unable to correct it
https://ide.codingblocks.com/s/39516
now, this case
5
3 1 4 2 5
doesn’t work
Your approach is not correct to detect if the given sequence is wrong. you can refer this link https://ide.codingblocks.com/s/39520