You are viewing a single comment's thread. Return to all comments →
To solve this question, you do not need any loop at all. it can be solved in O(1) time
I hope this comment will help you to opmtize your solution further.-
https://www.hackerrank.com/challenges/kangaroo/forum/comments/585778
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 →
To solve this question, you do not need any loop at all. it can be solved in O(1) time
I hope this comment will help you to opmtize your solution further.-
https://www.hackerrank.com/challenges/kangaroo/forum/comments/585778