Testcase is missing or wrong let array is 9,10,11,12. according to everyone’s logic its ans is “NO” but lets arrange them as 9 10 12 11
1 Like
10 - 9 = 1
12 - 10 = 2
11 - 12 = -1
I hope u realize where u r going wrong
This submission gets AC for this test case even though it shouldn’t.
https://www.codechef.com/viewsolution/64052886
1
4
15 90 110 150
The answer should be “NO” but it prints “YES”. Weak test cases.
1 Like
Your code will not be able to pass 0 5 15 90 110 150 because you started loop form 2.It should be from 1.
That’s not my code. And it passes the test case mentioned. Because there aren’t test cases to catch that.
This post was flagged by the community and is temporarily hidden.