HackerRank-Easy-Number Line Jumps(TS)

constraints0 <= x1 < x2 <= 10000
1 <= v1 <= 10000
1 <= v2 <= 10000
x1 + jumpCount * v1 === x2 + jumpCount* v2
jumpCount === (x2 - x1) / (v1 - v2)

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Clement

A web frontend developer’s clueless notes that might contain something about Angular, typescript or other frontend related subjects.