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 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 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 a Spreadsheet Design a spreadsheet whose cells hold numbers or formulas, with a dependency graph that recalculates every affected cell once in topological order and rejects circular references. | Hard |
| Design a Tag Management System Design the tagging behind GitHub issues and Jira tickets: add and remove tags with one spelling each, list an item's tags, search by all or any tags with an inverted index, and rank popular tags. | Easy |
| Design a Unix File Search Design a find-style file search with filters by name, extension, type and size that combine with AND and OR, a lazy depth-first tree walk, and an ls -R listing. | Medium |
| Design an HTTP Router Design an HTTP router with addRoute and callRoute, path parameters, trailing wildcards, a clear match priority (literal over parameter over wildcard), and 404 versus 405 answers. | Medium |
| Design an In-Memory Database Design an in-memory database with typed tables, SQL-like select, update and delete with WHERE and ORDER BY, and sorted indexes that stay in sync and speed up queries without changing results. | 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 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 |