Whatnot logoWhatnot
CodingMembers

Real-Time Top Sellers Leaderboard by GMV

Members only

A class-design coding question about keeping a live ranking of sellers by sales volume during a show. The interesting part is that totals keep changing while the host keeps asking for the current standings, so you have to decide which operation to make cheap and defend that choice.

SWE
medium
hashmap
sorting
top-k
leaderboard
data-structure
Frequency
Single report
Last asked
—
Stage
phone-screen · onsite-coding

Members get

  • Full problem statement
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 5 common pitfalls
  • 6 talking points
  • 5 follow-up questions with answer directions
  • Preparation drills

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...