[Interview Experience Collection] [G Company] 20250123
Machine-translated from Chinese, so it may read oddly. Comments are left as members wrote them. Read the Chinese original
Position: SDE
Coding:
Given all car rental records from last year, where each record contains pickup time, return time, and a corresponding record ID (e.g., id=101, pickup_time=3, return_time=5), find the minimum number of cars needed to satisfy all rental requests.
Comments0