You are playing a video game where you must defend a city against a horde of dist and speed, both of length dist[i] represents the initial distance of the speed[i] represents the speed of the
You possess a weapon that can eliminate one monster at a time. The weapon is fully charged at minute
The monsters move continuously toward the city at their respective speeds. You lose the game if any monster reaches the city (meaning its distance becomes less than or equal to
Return the maximum number of monsters you can eliminate before losing, or
Constraints:
n dist.length speed.length
n
dist[i], speed[i]
You are playing a video game where you must defend a city against a horde of dist and speed, both of length dist[i] represents the initial distance of the speed[i] represents the speed of the
You possess a weapon that can eliminate one monster at a time. The weapon is fully charged at minute
The monsters move continuously toward the city at their respective speeds. You lose the game if any monster reaches the city (meaning its distance becomes less than or equal to
Return the maximum number of monsters you can eliminate before losing, or
Constraints:
n dist.length speed.length
n
dist[i], speed[i]