9 4
2 9 5 8 1 5 5 2 4
Answer is “no”, but your output is “yes”
9 4
2 9 5 8 1 5 5 2 4
Answer is “no”, but your output is “yes”
Did you try this case :
2 3
0 0
Answer is “no”
oops sorry I gave the wrong link, this one as well failed which passes the above test case… I was experimenting and removed a condition in the code that I provided the link for. The below passes every testcase so far given on this page