April 7, 2023, 4:57 p.m. | Foroogh Varmazyar

DEV Community dev.to

You are choreographing a circus show with various animals. For one act, you are given two kangaroos on a number line ready to jump in the positive direction (i.e, toward positive infinity).



  • The first kangaroo starts at location x1 and moves at a rate of v1 meters per jump.


  • The second kangaroo starts at location x2 and moves at a rate of v2 meters per jump.



You have to figure out a way to get both kangaroos at the same …

act animals hackerrank infinity kotlin location rate return solution yes

CyberSOC Technical Lead

@ Integrity360 | Sandyford, Dublin, Ireland

Cyber Security Strategy Consultant

@ Capco | New York City

Cyber Security Senior Consultant

@ Capco | Chicago, IL

Sr. Product Manager

@ MixMode | Remote, US

Corporate Intern - Information Security (Year Round)

@ Associated Bank | US WI Remote

Senior Offensive Security Engineer

@ CoStar Group | US-DC Washington, DC