We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Nowhere in the problem statement does it say that time must be an integer for a solution to be accepted. However it seems the solution assumes this since the testcase: 21 6 47 3 has a meeting point at the integer 71 but a non-integer time and is meant to return "NO".
How to report this? This should either return "YES" as the solution, or it should be made clear that the solution should also be for integer time.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Number Line Jumps
You are viewing a single comment's thread. Return to all comments →
Nowhere in the problem statement does it say that time must be an integer for a solution to be accepted. However it seems the solution assumes this since the testcase: 21 6 47 3 has a meeting point at the integer 71 but a non-integer time and is meant to return "NO".
How to report this? This should either return "YES" as the solution, or it should be made clear that the solution should also be for integer time.