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 |
|---|---|
| Composite Pattern How the Composite pattern lets you treat one object and a group of objects the same way, with a files and folders example, a menu with combo meals, variations and when not to use it. | |
| Design a Collaborative Document Editor Design a Google Docs style document server: concurrent edits rebased onto the latest text, a version history you can read at any point, and nested comments anchored to text that moves. | Hard |
| Design a JSON/XML Parser Design a parser that reads JSON and a subset of XML into one document tree, with a tokenizer, recursive descent, numbers kept exactly, and a registry that makes formats swappable. | Medium |
| Design a Rule Engine Design a fraud rule engine for card payments, with conditions composed from AND, OR and NOT, velocity rules, the most severe action winning, and safe rule changes under concurrent load. | Medium |
| 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 Text Editor Design a text editor with a cursor, typing and backspace, cursor moves, and undo/redo built from command objects, on a two-stack buffer that keeps every edit fast. | Medium |
| 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 Expression Evaluator Design an evaluator for arithmetic expressions with operator precedence, unary minus, variables and new operators added at runtime, built as tokenizer, parser and expression tree. | Medium |
| Design an In-Memory File System Design an in-memory file system with absolute paths, directories and files, mkdir -p, ls, write, append, read, recursive sizes and rm -r, built on the Composite pattern. | Medium |