6 kyu
Simple Fun #353: Lonely Frog II
48 of 114myjinxin2015
Loading description...
Algorithms
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
This comment has been hidden.
Hi, can anybody explain why jump_to(8) = 5. I thought it's 4: 1->2->2->2->1
So it should be 7 units for n = 8.
Thank you for your reply This test case test.assert_equals(jump_to(8), 5) mean n=8 is 5 units
Python Translation
Bump
Couldn't come up with a O(1) solution, but still managed to solve it somehow. Great kata!
Scala translation published.
Approved
I don't know why my super short
O(1)
solution passes, but apparently it does. Hmm...Save another lonely frog, Please ;-)
One Line Task: Lonely Frog II
? ;-)no another frog at the moment. perhaps tomorrow ;-)