InterviewDB Question

Top Customers - Rank Customers by Lifetime Value with Tier Bucketing

Question Details

Problem Given a table of orders: For each customer, compute their total lifetime spend and assign a tier: PLATINUM: top 10% by spend GOLD: next 20% SILVER: remaining Return customer_id, total_spend, and tier, ordered by total_spend descending. Exampl…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite Phone