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.
My code my not be the fastest but it gets the job done! Basically, if the kangaroo that is behind has a higher speed, then we go to the next jump and check if they are at the same position. If the kangaroo that is ahead has the higher speed, then we return "NO".
Number Line Jumps
You are viewing a single comment's thread. Return to all comments →
My code my not be the fastest but it gets the job done! Basically, if the kangaroo that is behind has a higher speed, then we go to the next jump and check if they are at the same position. If the kangaroo that is ahead has the higher speed, then we return "NO".