+ 1
Road Runner!!! ✌🏻🙌🏻
I can't understand the road Runner code coach... Can you explain the question to me 🤌🏻
3 Answers
+ 2
The question is whether the coyote will catch the road runner or not.
They both run on the same line. The coyote starts 50 feet behind the road runner. After X(first entry) feet, the road runner is safe. The road runner and the coyote both run at a certain speed (second and third input).
Depending on whether the coyote is fast enough to catch up with the road runner before it reaches its destination, either Yum or Meep Meep is output.
+ 2
So the task is to find out how long both need to reach the destination and then compare the values.
0
Thanks for the clear explanation 🙌🏻