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.
9 write-ups
| Title | Difficulty |
|---|---|
| Design a Hit Counter Design a counter that records hits and reports how many arrived in the last 5 minutes, from a growing list to a queue to a fixed ring of 300 one-second buckets, plus per-page counts and thread safety. | Easy |
| Design a Leaderboard Design a game leaderboard that adds points to players, sums the top K totals and resets players, from sorting on every read to a heap to an always-sorted score index, plus ranks, daily boards and scale. | Medium |
| Design a Log Storage System Design a log store that saves ids with timestamps and returns every log in a time range at a chosen granularity, from field-by-field checks to one string range over a sorted index. | Medium |
| Design a Skiplist Design a skip list with search, add and erase in O(log n) on average: a sorted linked list with express lanes, random node heights you can replay, duplicates, and the follow-ups on maps, ranks and threads. | Hard |
| Design an In-Memory Search Engine Design an in-memory search engine with datasets, document insert and delete, word and prefix search through an inverted index, and swappable result orderings. | Medium |
| Design an Underground System Design a metro tap-in and tap-out system that tracks riders between stations and answers the average travel time of any route in constant time, with the rules for double taps and missing check-ins. | Medium |
| Design Browser History Design the back and forward buttons of a browser tab: visit clears forward pages, back and forward move several steps at once, built from one stack to two stacks to an array with a cursor. | Easy |
| Design Pastebin Design a paste service with short shareable ids, expiry times, public, unlisted and private visibility, owner-only delete and a list of recent public pastes. | Easy |
| Design Search Autocomplete Design a search box that suggests the three most popular past sentences for what the user has typed so far, from a full scan to a trie to a trie that caches each prefix's top three. | Medium |