Low-level design
Object-oriented design for interviews: the framework, design principles and patterns, concurrency, and problem breakdowns you can practice in the code runner.
Object-oriented design for interviews: the framework, design principles and patterns, concurrency, and problem breakdowns you can practice in the code runner.
5 write-ups
| Title | Difficulty |
|---|---|
| Design a Bloom Filter Design a Bloom filter with a packed bit array, k positions from double hashing, sizing from the expected item count and error rate, and a clear account of false positives. | Easy |
| Design a Loading Cache Design a thread-safe cache that loads missing values through a loader, runs one load per key when many threads miss at once, expires entries after a TTL, and never caches failures. | Medium |
| Design a Multi-Level Cache Design an L1/L2 cache in front of a slow store, with LRU eviction per level, promotion on reads, write-through and write-back policies, and a distributed version with consistent hashing and quorums. | Hard |
| Design a URL Shortener Design an in-memory URL shortener with counter-based base62 codes, user-chosen aliases that share the code space, and links that expire after a time to live. | Easy |
| Design an LRU Cache Design a fixed-size cache with a pluggable eviction policy: LRU with a hash map and a doubly linked list, LFU with LRU tie-breaking in O(1), and a thread-safe sharded version. | Medium |