Did you try this case :
2 3
0 0
Answer is “no”
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
Hey, I saw the editorial and understood the solution . But I used Greedy-Approach to solve the problem . Can anyone give me a testcase on which my solution is failing. (Try to avoid 0 based testcases as I am making some very obvious conceptual flaw.)And yaa its passing the above mentioned testcases.