A list of the most recently updated pages.
| Nov 19, 2026 | » | Dasher Payout Calculation
4 min; updated Nov 19, 2026
Problem StatementDesign an API that calculates total payout for a driver based on their delivery
events. Each delivery event has a status that’s one of … where SolutionParse, Don’t Validatepasses delivery events of the form: … and so parse them into appropriate types: ... |
| Nov 1, 2026 | » | Elevator Control
6 min; updated Nov 1, 2026
Design an elevator control system for a building. The system should handle multiple elevators, floor requests, and move elevators efficiently to service requests. Requirements GatheringLet there be \(E\) elevators serving \(F\) floors. Users can request an up/down elevator from any of the \(F\) floors. Once inside an elevator, the users can request any number of floors. The elevator stops at each of the requested floors. |
| Nov 1, 2026 | » | Dev Environment for C#
2 min; updated Nov 1, 2026
See Write Code and Exercise It Using TestsPackages worth adding:
Formatting and Linting… and have |
| Oct 28, 2026 | » | Amazon Locker
5 min; updated Oct 28, 2026
Design a locker system like Amazon Locker where delivery drivers can deposit packages and customers can pick them up using a code. Clarifying Questions
|
| Sep 6, 2026 | » | Hello Interview
4 min; updated Oct 24, 2026
System DesignSee for bite-sized groups that are digestible in a week’s period. In a Hurry
Core Concepts
Question Breakdowns
Patterns
Key Technologies
Advanced Topics
In the Wild
CodeTwo Pointers
Sliding Window
Intervals
Stack
Linked List
Binary Search
Heap
Depth-First Search
Breadth-First Search
Backtracking
Graphs
Dynamic Programming
Greedy Algorithms
Trie
Prefix Sum
Matrices
Low Level Design✅ Low Level Design in a Hurry✅ Concurrency
Problem Breakdowns
Behavioral
AI CodingOverview
Fundamentals
Common Patterns
AI Coding Problem Breakdowns
ML System DesignML System Design in a Hurry
ML System Design Core Concepts
ML System Design Question Breakdowns
References
|
| Oct 25, 2026 | » | Connect Four
3 min; updated Oct 25, 2026
Problem StatementBuild the object-oriented design for a two-player Connect Four game. Players take turns dropping discs into a 7-column, 6-row board. The first to align 4 of their own discs vertically, horizontally, or diagonally wins. ![]() Playing Connect Four with red winner example. Source: Wikimedia. RequirementsThese are guided by clarifying questions that determine the core operations to support, system states and their transitions, handling errors, and establishing scope. ... |
| Oct 24, 2026 | » | Managing Limited Resources
4 min; updated Oct 24, 2026
Limit Concurrent OperationsApplies when you have operations that can run concurrently, but you need to cap how many can run at once, e.g., integrating with an external API that allows at most 10 concurrent requests per account, limiting number of image processing jobs to avoid CPU saturation, etc. Semaphores solve this directly, e.g., |
| Oct 22, 2026 | » | Ensuring Correctness in Concurrent Execution
6 min; updated Oct 22, 2026
Bug PatternsCheck-Then-ActInvolves checking a condition and then making a decision based on that check, e.g., in a ticket booking system, checking that a seat is available and then booking it if so. Consider this buggy code: … where thread A reads |
| Oct 22, 2026 | » | Coordinating Work Between Threads
5 min; updated Oct 22, 2026
The ProblemSome work should not be ran in the mainline as it takes too long, and makes your mainline unresponsive, e.g., on user signup, sending a welcome email should be done out of line lest your application cannot process new requests. Conceptually, API handlers produce tasks, workers consume tasks, and something sits in between to coordinate the handoff. Three things need solving in this scenario:
|
| Sep 6, 2022 | » | Fiction Potpourri
11 min; updated Oct 20, 2026
A collection of notes/impressions from titles where I didn’t find enough to necessitate a dedicated page. Usually short works of fiction. Unknown NumberUnknown Number.
Blue Neustifter.
tells the story of a person who has gender dysphoria. In an alternate universe, they never transitioned but went on to become an established physicist who could communicate across parallel universes. ... |
| Aug 10, 2026 | » | Batch Processing with Unix Tools
4 min; updated Oct 20, 2026
Simple Log AnalysisSuppose you have a web server that appends a line to a log file every time it serves a request, e.g., using the nginx defaults (line breaks added for readability): To find the 5 most popular pages on your website, you can do: ... |
| Oct 4, 2026 | » | Imperial Reckoning: The Untold Story of Britain's Gulag in Kenya
5 min; updated Oct 4, 2026
Imperial Reckoning: The Untold Story of Britain's Gulag in Kenya.
Caroline Elkins.
2005.
ISBN: 0-8050-8001-5 .
Pax BritannicaThe messaging to Britons. We need the Uganda railway to spread Christianity, destroy slave trade, and protect the Nile. If Germany dams the Nile, then Egypt dries up, losing us the Suez Canal, and therefore control of India. ... |
| Sep 17, 2026 | » | Conjunctive Probability
1 min; updated Oct 3, 2026
DefinitionGiven two propositions, \(A\) and \(B\), the conjunction \(A \cap B\)
(read \(A\) and \(B\)) is |
| Sep 17, 2026 | » | Probability
2 min; updated Oct 3, 2026
Ingredients of ProbabilityThere is an outcome space, \(\Omega\), e.g., the number of students in the first class: \( \Omega = \{ 0, 1, 2, 3, … \} \). There are events of interest, e.g., at least one student shows up: \(A = \{1, 2, 3, … \} \). A probability measure, \(\mathbb{P}\), takes events \(A\) and assigns them \(\mathbb{P}(A) \in [0, 1]\), such that the axioms of probability are satisfied. ... |
| Sep 29, 2017 | » | Conditional Probability
1 min; updated Oct 3, 2026
Definition\( \mathbb{P}(A|B) \) is the probability of event \(A\) given that event \(B\) occurs: $$ \mathbb{P}(A|B) = \frac{\mathbb{P}(A \cap B)}{\mathbb{P}(B)} $$ Notice that if \(P(B) = 0\) then it’s meaningless to condition \(A\) on \(B\). Satisfying the Axioms of ProbabilityAxiom 1: Normalization$$ \mathbb{P}(B|B) = \frac{\mathbb{P}(B \cap B)}{\mathbb{P}(B)} = 1 $$ ... |
| Sep 1, 2019 | » | [ToDo] INFO 270: Calling Bullshit: Data Reasoning in a Digital World
1 min; updated Oct 3, 2026
INFO 270: Calling Bullshit: Data Reasoning in a Digital World.
Carl T. Bergstrom; Jevin West.
|
| Oct 3, 2026 | » | Case Studies in Spotting Bullshit
2 min; updated Oct 3, 2026
99.9% Caffeine-FreeAn example of how something can be true and still bullshit after a fashion. Nestle’s Hot Cocoa mix: With rich chocolate flavor and only 20 calories per single-serve packet, this cocoa makes a 99.9% caffeine-free, 8 fl oz serving. A 20oz Starbucks drip coffee has ~21mg of caffeine per ounce, and thus 0.075% caffeine by weight – strong coffee is also 99.9% caffeine-free! Time to End the Food Stamp Program?An example of how Fermi estimation can help spot bullshit in the world. ... |
| Oct 3, 2026 | » | State Machine
1 min; updated Oct 3, 2026
MotivationUse it when an object’s behavior changes based on its internal state and you have complex state transition rules. It’s the antidote to scattered conditionals checking current state. Each state know which state comes next and what actions are valid. Sample CodeReferences
|
| Oct 3, 2026 | » | Strategy
1 min; updated Oct 3, 2026
MotivationStrategy is the single most common pattern in LLD interviews. Whenever you see conditional logic based on type, then that’s a strategy pattern waiting to happen. Strategy replaces conditional logic with polymorphism. Sample Code… where |
| Oct 3, 2026 | » | OOP Structural Patterns: Facade
1 min; updated Oct 3, 2026
DefinitionA facade is an orchestrator class that hides the complexity of coordinating multiple components behind a clean interface. It’s rare to explicitly name it as most new code design clean orchestrators from scratch. You might name it when wrapping existing messy code, e.g., after inheriting a complex subsystem with awkward APIs. Sample Code |

gives me more vocabulary for the above, e.g., a “hall call” is when a user requests an elevator from one of the \(F\) floors.
...