InterviewDB Question

Popular Restaurant: Find Top-K Restaurants by Weighted Rating and Review Count

Question Details

Problem You are given a list of restaurants. Each restaurant has a name, a rating (float, 1.0-5.0), and a review_count (int). Return the top k most popular restaurants. Popularity score is defined as: score = rating * log(review_count + 1). Break tie…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite Phone