In this video, I have explained hackerrank number line jumps solution algorithm.
hackerrank kangaroo problem can be solved by using a set data structure. The complexity of the kangaroo hackerrank solution is O (1). This hackerrank problem is a part of the Practice | Algorithms | Implementation | Kangaroo hackerrank challenge.