InterviewDB
Question
Ride Ratings: Aggregate and Rank Drivers by Weighted Ride Rating Score
Onsite
Question Details
Problem You are given a list of ride records, each with a driver ID, a passenger rating (1-5), and a timestamp. Compute each driver's weighted average rating where more recent rides are weighted more heavily using exponential decay: weight = exp(-lam…
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →Topics
Coding
Onsite