InterviewDB Question

Motorcycle Racing: Simulate a Race and Determine Final Standings with Overtake and Pit-Stop Rules

Question Details

Problem You are given a list of n motorcycles, each with a base speed v and a pit-stop time p (seconds lost). The track is L km long. A faster motorcycle overtakes a slower one instantly when it catches up. Motorcycles pit exactly once at the halfway…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite