Square (Block) logoSquare (Block)
CodingMembers

Sparse Merchant-by-Category Sales Matrix Class

Members only

A design-and-implement exercise on storing a huge, mostly empty merchants-by-categories sales table without wasting memory while keeping common queries fast. Expect to reason about the tradeoff of extra bookkeeping.

SWE
data-structure
hashmap
heap
top-k
object-design
medium
Frequency
Single report
Last asked
—
Stage
onsite-coding

Members get

  • Full problem statement
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 4 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...