My issue
i feel option 2 and option 3 are the same and how it is possible that only one of the is correct?
Learning course: Arrays using Python
Problem Link: CodeChef: Practical coding for everyone
i feel option 2 and option 3 are the same and how it is possible that only one of the is correct?
Learning course: Arrays using Python
Problem Link: CodeChef: Practical coding for everyone
Correct Answer:
Option 3
A <= 2B, and B <= 2A Because if Alice runs less than twice of Bob, Bob will be happy(A<=2B) and if Bob runs less than twice of Alice,Alice will be happy(B<=2A).
Option 2 is wrong,
A >= 2B, and B >= 2A Because if Alice runs greater than twice of Bob, Bob will be unhappy(A<=2B) and if Bob runs greater than twice of Alice,Alice will be unhappy(B<=2A).
As per the question if any of them cross twice the others, then they will be unhappy. So option 3 is correct. Hope it will useful for you. if it helps pls like my comment
![]()