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

SOC 2 Manager, Audit and Certification

@ Deloitte | US and CA Multiple Locations

Cyber Systems Administration

@ Peraton | Washington, DC, United States

Android Security Engineer, Public Sector

@ Google | Reston, VA, USA

Lead Electronic Security Engineer, CPP - Federal Facilities - Hybrid

@ Black & Veatch | Denver, CO, US

Profissional Sênior de Compliance & Validação em TI - Montes Claros (MG)

@ Novo Nordisk | Montes Claros, Minas Gerais, BR

Principal Engineer, Product Security Engineering

@ Google | Sunnyvale, CA, USA