Code AnalysisBeginner 60s
Geospatial Index for Ride Matching
Pseudo-code:
for drv in ALL_DRIVERS: # millions
if dist(drv, rider) < 5km:
candidates.append(drv)
What is the flaw and the fix?
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.