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.
Jumping on the Clouds
Jumping on the Clouds
Sort by
recency
|
3290 Discussions
|
Please Login in order to post a comment
python3 Solution
This max score is not fair compared with some other challenges way more intricate than this one...
Java 8 solution:
Here is jumping on the CLOUD problem solution in python, java, c++, c and javascript - https://programmingoneonone.com/hackerrank-jumping-on-the-clouds-problem-solution.html
Guys, this is a math problem. The solution lies in understanding that it's just walks and jumps. The solution can be defined as: floor((n+walks)/2), where n is the total number of clouds. A walk in this case represents a forced walk (when there is an even number of clouds between two consecutive thunderclouds)
My solution in python:
C++