C3 AI logoC3 AI
CodingMembers

Versioned Array With Cheap Snapshots and Historical Reads

Members only

A data-structure design coding question about an array that can be frozen at moments in time and later queried for what it held back then. The hard part is keeping snapshots cheap when the array is large and most entries rarely change.

SWE
medium
array
hashmap
binary-search
data-structure
snapshot
Frequency
Single report
Last asked
—
Stage
onsite-coding

Members get

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