Pure Storage logoPure Storage
CodingMembers

Build a Constant-Time Least-Recently-Used Cache

Members only

A classic cache-eviction coding task that tests whether you can combine two data structures so every operation stays constant time. Most of the difficulty is in the pointer bookkeeping and the edge cases around updates and capacity rather than in the idea itself.

SWE
medium
hashmap
linked-list
caching
data-structure
Frequency
Single report
Last asked
—
Stage
onsite-coding

Members get

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