You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The binding manifest of every catalog problem: 210 DSA problems and 190 non-DSA problems (174 checked by tests and 16 by a rubric), each with its slug, title, patterns, difficulty, kind and labels, and for the planned rows their batch and owner stream.
Track
Problems
Where
dsa
210 (185 planned, 25 added)
problems/
practical
137 (6 planned, 16 added, 6 project problems added, 7 security and AI/LLM problems added, 8 backend TypeScript projects added, 20 service projects added, 11 memory and retrieval problems added, 1 search box problem added, 1 hash-chaining problem added, 3 trees, graphs and terrain problems added, 1 redaction project added, 5 knowledge representation problems added, 1 content-addressed storage problem added, 9 AI engineering problems added, 7 data engineering problems added, 1 architecture problem added, 5 infrastructure as code problems added, 3 security problems added, 2 machine learning problems added, 2 testing problems added, 3 networking problems added, 2 operating systems problems added, 1 sorting problem added, 3 language and editor problems added, 2 database internals problems added, 4 distributed systems problems added, 2 platform problems added, 3 internals problems added, 2 AI engineering problems added)
problems/
lld
8
problems/
concurrency
6
problems/
debugging
23 (8 planned, 8 in Go and Rust, 7 JavaScript traps in TypeScript)
problems/
system-design
10
problems/
code-review
6
problems/
Total
400 (384 checked by tests, 16 by a rubric)
Targets, batches and the copyright policy come from content; the file layout comes from problem-format; how to write a rubric problem is in authoring.
Every row has three labels: domains, job_roles and scope (S24, ADR 0020). Their values repeat across hundreds of rows, so each section below states them once, with its exceptions, instead of in three columns; a table added later carries them as columns, which are binding as kind is. The prose column that says what a row covers is covers, since scope is a label.
Rules
Rule
Detail
Binding
slug, title, primary pattern, kind and batch in this file are binding. A stream creates exactly the rows it owns, at problems/<slug>/, and touches no other row
Slugs
Unique, because they are directory names, and immutable once merged, because progress.db keys on the slug
meta.yaml
patterns is the primary pattern followed by the secondary patterns in the listed order; difficulty and kind match the row; domains, job_roles and scope are the section's labels, with its exceptions; references.leetcode.number is the lc column
Changes
A stream that cannot build a row as listed stops and reports. The catalog is amended in the main checkout first, never inside a stream worktree
Wording
Statements, examples, tests, hints and explanations are original (ADR 0004). Common titles are allowed; LeetCode appears only as a link in references.leetcode
Merge
A batch merges only when all its problems are ready and pass cstudy verify --oracle (and --ladder from Phase 2 on), as content states
Languages
Every problem has references in all six languages (Python, TypeScript, Java, Kotlin, Go, Rust) and lists no languages, except the rows whose languages column says otherwise, linked-list-cycle, which has no Rust (S13, ADR 0012), a problem with security, identity, ai-llm or frontend among its domains, which may list any subset and states it in the languages column (ADR 0020), and project problems, which list exactly the one language in their language column (ADR 0014). The data, infrastructure, systems and software-design domains keep the six-language rule, like algorithms, backend and fintech (ADR 0020)
How streams use this file
Find the rows whose stream is yours (DSA) or whose section names you as owner (non-DSA).
Build them batch by batch; within a pattern, rows run from easy to hard, which is also a sensible order for meta.yaml.
Rows marked existing are already in problems/. Their stream owns any revision, but they do not count toward its quota.
DSA catalog
Labels: domains: [algorithms], job_roles: [general] and scope: function on all 210 rows, with no exceptions.
210 problems: 185 planned in six batches, and 25 added later. Columns: slug, title, primary pattern, secondary patterns, difficulty, lc (LeetCode reference number, reference only), kind, batch, stream. Rows marked existing are already in problems/; their stream owns any revision but they do not count toward its quota.
25 problems added after the six batches, outside the stream plan. Two of them are examples the original selection replaced: Meeting Rooms (252) as can-attend-meetings, and Course Schedule II (210). Four, flood-fill, path-exists-in-graph, max-average-fixed-window, kth-largest-in-stream, are easy on-ramps, each to a harder problem of its pattern that lists it in related: flood-fill to number-of-islands, path-exists-in-graph to count-connected-components, max-average-fixed-window to min-size-subarray-sum, and kth-largest-in-stream to kth-largest-element. Six more, lamp-patterns, count-words-by-prefix, village-paths, price-after-rebate, minimum-path-sum, check-task-order, are on-ramps in the same way, all easy but minimum-path-sum: lamp-patterns to subsets, count-words-by-prefix to implement-trie, village-paths to count-connected-components, price-after-rebate to daily-temperatures, minimum-path-sum to unique-paths, and check-task-order to course-schedule. substring-search and first-bad-commit are fundamentals: substring search, and the first bad commit of a history whose tests cannot all run.
Each stream owns whole patterns, so one stream holds all problems of a pattern and its related links. Batch 1 (Phase 1) is never mixed with later batches. Batches 2 to 6 all belong to Phase 3, and none of them splits into whole-pattern streams of 16 to 20 on its own (for example batch 2 has 31 new problems, which gives 16 and 15 at best), so D4, D7 and D9 each pair patterns from two Phase 3 batches. A stream with two batches finishes the earlier batch's patterns first, so that batch can merge without waiting.
Non-DSA catalog
practical (137, problems/)
Labels: in-memory-database, banking-system, cloud-file-storage, job-scheduler, transactional-kv-store, api-gateway and scheduled-transfers-bank (the 7 progressive rows, domains: [backend], job_roles: [backend], scope: function); premium-rating-breakdown, versioned-rate-table, pro-rata-unearned-premium, coverage-gaps, contractor-exposure-rollup, installment-schedule, tiered-bond-premium, earned-premium-as-of, endorsement-replay, certificate-expiry-alerts, loss-ratio-by-period, rate-change-impact, payroll-report-validation, duplicate-contractor-records, effective-dated-history (the 15 insurance rows, domains: [fintech], job_roles: [backend], scope: function); bank-project-python, bank-project-typescript, bank-project-java, bank-project-kotlin, bank-project-go, bank-project-rust (the 6 project problems, domains: [backend, fintech], job_roles: [backend], scope: project). Exceptions: banking-system and scheduled-transfers-bank also have fintech, and api-gateway also has the role platform. token-claim-validator, refresh-token-rotation, authorization-policy-engine, calibration-metrics, token-cost-reconciler, bm25-hybrid-ranker, stream-reassembler carry their labels as columns.
The six planned rows (owner P1) are progressive:
slug
title
covers
difficulty
in-memory-database
In-Memory Database
Records with fields; then prefix scans; then per-field TTL; then point-in-time reads over history
hard
banking-system
Banking System
Accounts, deposits and transfers; then top spenders; then scheduled payments with cashback; then account merges with historical balances
hard
cloud-file-storage
Cloud File Storage
Add, read and delete files; then size-ordered listing by prefix; then per-user quotas; then backup and restore
medium
job-scheduler
Rate-Limited Job Scheduler
Submit and run jobs by priority; then per-tenant rate limits; then retries with backoff; then dependencies and cancellation
hard
transactional-kv-store
Transactional Key-Value Store
Set, get and count by value; then begin and rollback; then nested transactions; then commit semantics with snapshots
medium
api-gateway
API Gateway
Route registration and matching; then per-client fixed-window limits; then sliding windows and quotas; then per-upstream circuit breakers
hard
15 added later are insurance tasks of every kind, many with decimal and date values:
slug
title
patterns
kind
difficulty
premium-rating-breakdown
Premium Rating Breakdown
binary-search, arrays-hashing
function
medium
versioned-rate-table
Versioned Rate Table
binary-search
design
medium
pro-rata-unearned-premium
Pro-Rata Unearned Premium
-
function
easy
coverage-gaps
Coverage Gaps
intervals
function
medium
contractor-exposure-rollup
Contractor Exposure Rollup
graphs
function
medium
installment-schedule
Installment Schedule
math-geometry
function
medium
tiered-bond-premium
Tiered Bond Premium
-
function
easy
earned-premium-as-of
Earned Premium As Of
-
function
easy
endorsement-replay
Endorsement Replay
binary-search
design
medium
certificate-expiry-alerts
Certificate Expiry Alerts
arrays-hashing
function
easy
loss-ratio-by-period
Loss Ratio by Period
arrays-hashing
function
medium
rate-change-impact
Rate Change Impact
arrays-hashing
function
medium
payroll-report-validation
Payroll Report Validation
arrays-hashing
function
medium
duplicate-contractor-records
Duplicate Contractor Records
union-find, arrays-hashing
function
medium
effective-dated-history
Effective-Dated History
binary-search
progressive
medium
One more added later is a sibling of banking-system whose level 3 replaces the fixed-delay cashback with transfers that each have their own delay and can be canceled:
slug
title
patterns
kind
difficulty
scheduled-transfers-bank
Scheduled Transfers Bank
heap
progressive
hard
Six project problems (kind project, one language each) carry scheduled-transfers-bank's behavior and statement wording into a seeded folder. Each is built from scratch, with its own starter, tests.json (at least 2 visible and 2 hidden cases per level, covering the rules scheduled-transfers-bank's cases pin down), reference and explanation; each lists the others and scheduled-transfers-bank in related. bank-project-python is the Python pilot (roadmap Phase 8a), bank-project-typescript the TypeScript one (Phase 8b), bank-project-java the Java one, bank-project-kotlin the Kotlin one, bank-project-go the Go one and bank-project-rust the Rust one; all six exist in problems/.
slug
title
language
patterns
kind
difficulty
bank-project-python
Bank Project (Python)
python
-
project
hard
bank-project-typescript
Bank Project (TypeScript)
typescript
-
project
hard
bank-project-java
Bank Project (Java)
java
-
project
hard
bank-project-kotlin
Bank Project (Kotlin)
kotlin
-
project
hard
bank-project-go
Bank Project (Go)
go
-
project
hard
bank-project-rust
Bank Project (Rust)
rust
-
project
hard
The first wave of security and AI/LLM problems (ADR 0020) is original, function-size and needs no service. Each lists Python and TypeScript, under the Languages rule. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
token-claim-validator
Token Claim Validator
arrays-hashing
function
medium
python, typescript
security, identity
security-engineer, backend
function
refresh-token-rotation
Refresh Token Rotation
arrays-hashing
design
medium
python, typescript
security, identity
security-engineer, backend
function
authorization-policy-engine
Authorization Policy Engine
graphs
design
medium
python, typescript
security
security-engineer, backend
function
calibration-metrics
Calibration Metrics
arrays-hashing
function
easy
python, typescript
ai-llm
ml-engineer, ai-engineer
function
token-cost-reconciler
Token Cost Reconciler
arrays-hashing
function
medium
python, typescript
ai-llm
ai-engineer
function
bm25-hybrid-ranker
BM25 Hybrid Ranker
arrays-hashing
function
medium
python, typescript
ai-llm
ai-engineer, ml-engineer
function
stream-reassembler
Stream Reassembler
arrays-hashing
design
medium
python, typescript
ai-llm
ai-engineer
function
Three more TypeScript project problems train work on code you did not write, on the engine as it is. loan-pipeline-service-typescript and warehouse-work-orders-typescript are small working services, laid out differently on purpose, by type and by feature, and each level changes one. There is no HTTP server, since a project has no dependencies: an entry class takes what a request would carry and answers [status, json], with the keys of the JSON sorted in one place. debug-async-batch-typescript is a debugging exercise in all but its track: await only finishes in a project on the virtual clock (ADR 0017), so its starter holds the bug instead of a buggy/ file.
slug
title
kind
difficulty
languages
domains
job_roles
scope
loan-pipeline-service-typescript
Loan Pipeline Service (TypeScript)
project
hard
typescript
backend, fintech
backend
project
warehouse-work-orders-typescript
Warehouse Work Orders (TypeScript)
project
hard
typescript
backend
backend
project
debug-async-batch-typescript
Debug: Async Batch (TypeScript)
project
medium
typescript
backend
backend
project
Five more TypeScript projects go deep on backend reliability, on the engine as it is. Each is laid out differently, each level removes one assumption, and each explanation says what to say out loud and what to do next in production. Their wrong approaches are not stored as broken overlays, since these logic bugs fail sequential cases (authoring): each explanation names them under its pitfalls with the cases that catch them. vendor-retry-client-typescript runs on the virtual clock, and loan-extraction-review-typescript has no model in it: the model's output arrives as data.
slug
title
kind
difficulty
languages
domains
job_roles
scope
idempotent-document-consumer-typescript
Idempotent Document Consumer (TypeScript)
project
hard
typescript
backend
backend, platform
project
transactional-outbox-typescript
Transactional Outbox (TypeScript)
project
hard
typescript
backend
backend, platform
project
vendor-retry-client-typescript
Vendor Retry Client (TypeScript)
project
hard
typescript
backend
backend, platform
project
supplier-records-locking-typescript
Supplier Records with Optimistic Locking (TypeScript)
project
hard
typescript
backend
backend
project
loan-extraction-review-typescript
Loan Extraction Review (TypeScript)
project
hard
typescript
ai-llm, fintech
ai-engineer, backend
project
The first service projects run a real app in a Docker sandbox against mock vendors and are graded over HTTP. They are one problem in two languages: the same tests.json, mock servers and seeded desks grade both, each built from scratch in its language, and each lists the other in related.
slug
title
kind
difficulty
languages
domains
job_roles
scope
coworking-availability-typescript
Coworking Availability (TypeScript)
project
hard
typescript
backend
backend, platform
project
coworking-availability-python
Coworking Availability (Python)
project
hard
python
backend
backend, platform
project
Four more service projects, in TypeScript. payment-webhook-receiver-typescript receives a payment provider's signed webhooks, and ssrf-safe-webhook-dispatcher-typescript delivers a customer's webhooks without reaching your own network. oauth-pkce-client-typescript signs users in with OpenID Connect against a real Keycloak, and inventory-reservations-typescript takes many checkouts at once on Postgres. Each has its own tests.json; payment-webhook-receiver-typescript and ssrf-safe-webhook-dispatcher-typescript use mock servers, oauth-pkce-client-typescript mocks the identity provider with a pass-through to Keycloak, and inventory-reservations-typescript has no mock.
slug
title
kind
difficulty
languages
domains
job_roles
scope
payment-webhook-receiver-typescript
Payment Webhook Receiver (TypeScript)
project
medium
typescript
fintech, security
backend, security-engineer
project
oauth-pkce-client-typescript
OAuth Client with PKCE (TypeScript)
project
hard
typescript
identity, security
backend, security-engineer
project
ssrf-safe-webhook-dispatcher-typescript
SSRF-Safe Webhook Dispatcher (TypeScript)
project
hard
typescript
security
security-engineer, backend
project
inventory-reservations-typescript
Inventory Reservations (TypeScript)
project
hard
typescript
backend
backend
project
Five more service projects, in TypeScript, on the backing services. postgres-job-queue-typescript builds a job queue on Postgres, and csv-upload-ingestion-typescript loads CSV uploads from S3 and SQS on Moto into Postgres. price-cache-rate-limits-typescript caches prices and limits request rates on Valkey, the BSD-licensed fork of Redis, behind a mock pricing vendor. multi-tenant-api-typescript keeps tenants apart with row-level security, and event-sourced-ledger-typescript keeps a ledger as append-only events with projections. Each has its own tests.json; only price-cache-rate-limits-typescript has a mock server.
slug
title
kind
difficulty
languages
domains
job_roles
scope
postgres-job-queue-typescript
Postgres Job Queue (TypeScript)
project
hard
typescript
backend
backend, platform
project
csv-upload-ingestion-typescript
CSV Upload Ingestion (TypeScript)
project
hard
typescript
backend
backend, platform
project
price-cache-rate-limits-typescript
Price Cache and Rate Limits (TypeScript)
project
medium
typescript
backend
backend, platform
project
multi-tenant-api-typescript
Multi-Tenant API (TypeScript)
project
hard
typescript
backend, security
backend, security-engineer
project
event-sourced-ledger-typescript
Event-Sourced Ledger (TypeScript)
project
hard
typescript
fintech, backend
backend
project
Four service projects in TypeScript on P11's mock server extensions, the first project-size AI/LLM problems among them. secure-file-upload-typescript stores uploads behind a mock malware scanner that fails, and llm-gateway-typescript is an LLM gateway that streams answers from two mock providers, waits out rate limits, falls back and keeps budgets. rag-citations-typescript answers from documents with citations, through mock embeddings and chat APIs and vector search on pgvector, and tool-calling-agent-loop-typescript runs a tool-calling agent loop against a mock model and the shop's tool APIs. Each has its own tests.json and mock servers; only rag-citations-typescript has a backing service.
slug
title
kind
difficulty
languages
domains
job_roles
scope
secure-file-upload-typescript
Secure File Upload (TypeScript)
project
medium
typescript
security, backend
backend, security-engineer
project
llm-gateway-typescript
LLM Gateway (TypeScript)
project
hard
typescript
ai-llm, backend
backend, ai-engineer
project
rag-citations-typescript
RAG Service with Citations (TypeScript)
project
hard
typescript
ai-llm
ai-engineer
project
tool-calling-agent-loop-typescript
Tool-Calling Agent Loop (TypeScript)
project
hard
typescript
ai-llm, security
ai-engineer, security-engineer
project
Eleven function-size memory and retrieval problems, original and needing no service, each in Python and TypeScript under the Languages rule. memory-store, chat-history-index, context-packer, memory-facts-with-merge are four-level progressive stores: memories per user, a chat history index, a context packer under a token budget, and versioned facts that two stores merge. forgettable-inverted-index keeps BM25 current over an index that forgets, and memory-write-sanitizer cleans text before it is stored as a memory. cosine-top-k, chunking-with-overlap, retrieval-metrics, freshness-reranker, versioned-memory-store are retrieval blocks: cosine top k with a bounded heap, chunking with overlap, recall, MRR and nDCG, a freshness reranker, and a memory store with compare-and-set writes. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
memory-store
Memory Store
-
progressive
hard
python, typescript
ai-llm, backend
backend, ai-engineer
function
chat-history-index
Chat History Index
-
progressive
hard
python, typescript
ai-llm, backend
backend, ai-engineer
function
context-packer
Context Packer
greedy
progressive
medium
python, typescript
ai-llm, backend
backend, ai-engineer
function
memory-facts-with-merge
Memory Facts with Merge
-
progressive
hard
python, typescript
ai-llm, backend
backend, ai-engineer
function
forgettable-inverted-index
Forgettable Inverted Index
-
design
medium
python, typescript
ai-llm
ai-engineer, backend
function
memory-write-sanitizer
Memory Write Sanitizer
-
function
medium
python, typescript
ai-llm, security
ai-engineer, security-engineer
function
cosine-top-k
Cosine Top K
heap
function
medium
python, typescript
ai-llm
ai-engineer, backend
function
chunking-with-overlap
Chunking With Overlap
sliding-window
function
medium
python, typescript
ai-llm
ai-engineer, backend
function
retrieval-metrics
Retrieval Metrics
arrays-hashing
function
medium
python, typescript
ai-llm
ai-engineer, backend
function
freshness-reranker
Freshness Reranker
arrays-hashing
function
easy
python, typescript
ai-llm
ai-engineer, backend
function
versioned-memory-store
Versioned Memory Store
arrays-hashing
design
easy
python, typescript
ai-llm, backend
ai-engineer, backend
function
One function-size, four-level progressive problem in all six languages: search-box-navigation is the logic behind a search input with a list under it. It handles key presses, name matching, typing with stale responses, and selection with Enter. It runs as a plain class, not in a browser. A version graded in a headless browser waits for Phase 16 (roadmap). The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
search-box-navigation
Search Box with Keyboard Navigation
-
progressive
medium
all six
backend
general
function
Two service projects in Java and Kotlin, from P12 (roadmap): coworking-availability-java and coworking-availability-kotlin are the Java and Kotlin versions of coworking-availability-typescript. They are graded by the same cases and mock servers as coworking-availability-typescript, each is built from scratch in its language on one Gradle image, and each lists the other versions in related.
slug
title
kind
difficulty
languages
domains
job_roles
scope
coworking-availability-java
Coworking Availability (Java)
project
hard
java
backend
backend, platform
project
coworking-availability-kotlin
Coworking Availability (Kotlin)
project
hard
kotlin
backend
backend, platform
project
One service project in Go, from P13 (roadmap): coworking-availability-go is the Go version of coworking-availability-typescript, graded by the same cases and mock servers, built from scratch on Go's standard library, and lists the other versions in related.
slug
title
kind
difficulty
languages
domains
job_roles
scope
coworking-availability-go
Coworking Availability (Go)
project
hard
go
backend
backend, platform
project
One security service project in TypeScript, the built form of PP14 (roadmap): fix-the-flaws-typescript hands over a working service with four levels of flaw (notes that belong to someone else, names and fields taken from the request, text that becomes a query, and logs and errors), and grades the fix with attack cases that must fail and normal cases that must keep passing.
slug
title
kind
difficulty
languages
domains
job_roles
scope
fix-the-flaws-typescript
Fix the Flaws (TypeScript)
project
hard
typescript
security
security-engineer, backend
project
One function-size, four-level progressive problem on hash chaining: tamper-evident-ledger is an audit log that fingerprints batches of records with SHA-256 (with an exact byte encoding, so every language gets the same digests), chains the batches so that one digest stands for a whole history, finds where two histories part by bisecting the chain digests, and proves that a record is in a batch with Merkle inclusion proofs. It lists Python, TypeScript, Java, Kotlin and Go: the security domain lets a problem list a subset (S13), and Rust's vendored crates hold no SHA-256, so a Rust solution would have to write the hash function first. Its pattern is the nearest of the closed list, arrays-hashing, with binary-search for level 3.
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
tamper-evident-ledger
Tamper-Evident Ledger
arrays-hashing, binary-search
progressive
medium
python, typescript, java, kotlin, go
security, backend
security-engineer, backend
function
One service project in Python on Postgres, from P13 (roadmap): feed-ingest-python is a loyalty program that gets a file of purchases from its shops each day. It loads the file into Postgres once however often it is sent, reports the rows it refuses, works out points in whole cents, and asks a flaky bonus partner (a mock server) for bonuses without failing. Its labels are columns here.
slug
title
kind
difficulty
languages
domains
job_roles
scope
feed-ingest-python
Feed Ingest (Python)
project
hard
python
backend, fintech
backend, platform
project
Three function-size, four-level progressive problems in all six languages, on trees, graphs and a picture of terrain: org-chart-outline builds an org chart from flat (id, parent, name) rows, in any order and with orphans and cycles, and prints an outline of 10^5 rows; referral-rewards pays a bonus once per referred person, counts direct and indirect referrals and ranks the top referrers, up to a million people; water-on-terrain draws a height profile as text and pours water on it unit by unit, with exact rules for left, right, flat stretches and edges. org-chart-outline and referral-rewards have a performance ladder. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
org-chart-outline
Org Chart Outline
trees, arrays-hashing
progressive
medium
all six
algorithms, backend
general, backend
function
referral-rewards
Referral Rewards
graphs, union-find
progressive
hard
all six
algorithms, backend
general, backend
function
water-on-terrain
Water on Terrain
-
progressive
medium
all six
algorithms
general
function
One project in Python on AI/LLM and security: safe-redaction-python hides the emails, phone numbers and names that a model found in text, and the model is not always right. It checks the model's spans against the text, adds a regex safety net for what the model missed, and scores the result with a recall-weighted F2. It is a project in a plain Python package, not a service. It lists Python only, since the security and AI/LLM domains let a problem list a subset (S13).
slug
title
kind
difficulty
languages
domains
job_roles
scope
safe-redaction-python
Safe Redaction (Python)
project
hard
python
ai-llm, security
ai-engineer, security-engineer
project
Two function-size, four-level progressive problems in all six languages on knowledge representation: taxonomy is a taxonomy whose concepts may have several parents, in the vocabulary of SKOS: ancestors and descendants nearest first, refused cycles, every lowest common ancestor, preferred and alternative labels with facet expansion, and ids that stay stable across renames and replacements, with exact matches between two schemes; triple-store is an in-memory store of (subject, predicate, object) facts, as in RDF: every pattern shape answered from an index, joined queries on variables, + property paths that survive cycles, and answers as of a past time with the sources behind each row. Both have a performance ladder. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
taxonomy
Taxonomy
graphs
progressive
hard
all six
algorithms, backend
general, backend
function
triple-store
Triple Store
arrays-hashing, graphs
progressive
hard
all six
algorithms, backend, ai-llm
general, backend, ai-engineer
function
Three more four-level progressive problems on knowledge representation, in Python and TypeScript, each with its own reference solution: reasoner-vs-validator is a reasoner set against a closed-world validator, where one KnowledgeBase infers types, links and clashes under the open-world assumption, checks shapes under the closed-world one, and contrasts the two answers; entity-resolution is entity resolution, from normalized records, blocking and string similarity through clusters and a canonical record to pairwise and B-cubed scores; graphrag-context is a GraphRAG context builder that ranks the facts near an entity by weight, distance and recency, fills a token budget, and cites the path behind each fact. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
reasoner-vs-validator
Reasoner vs Validator
graphs
progressive
hard
python, typescript
algorithms, backend, ai-llm
general, backend, ai-engineer
function
entity-resolution
Entity Resolution
union-find, arrays-hashing
progressive
hard
python, typescript
algorithms, backend, ai-llm
general, backend, ai-engineer, ml-engineer
function
graphrag-context
GraphRAG Context
graphs, greedy
progressive
hard
python, typescript
algorithms, backend, ai-llm
general, backend, ai-engineer
function
One function-size, four-level progressive problem in all six languages on content-addressed storage, the last step of the hashing path: content-addressed-store files data under its SHA-256 address, stores the same data once and checks every read; snapshots folders as trees whose entries are named by digest, and diffs two snapshots; compares fixed-size chunks with content-defined chunks cut by a rolling hash; and keeps named refs, collecting what no ref reaches as garbage. Its Rust starter carries a small SHA-256 helper, since Rust's vendored crates hold none. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
content-addressed-store
Content-Addressed Store
arrays-hashing, trees, sliding-window, graphs
progressive
hard
all six
backend, algorithms
backend, platform
function
Nine function-size, four-level progressive problems on AI engineering, in Python and TypeScript under the Languages rule: loop-controller is the brakes of an agent loop, with a step cap, repeated identical failures, token and time budgets and a checked claim of done; tool-permission-gate a permission gate that decides each tool call from rules, scopes on paths and hosts, and remembered answers, with a log that ignores injected text; context-compaction compaction that keeps a long chat inside a token budget without splitting tool calls, with a stable prefix and pinned facts; cache-and-router an exact and a semantic cache with routing to a tier and a savings report; eval-release-gate a release gate from output assertions, judge scores checked against human labels and golden-set regressions; sql-guard a guard that lets model-written SQL run only as one read-only query on allowed tables and columns, with a row limit; plan-and-execute a runner for a model's plan of subtasks, in parallel waves with retries, replanning and budgets; corrective-rag corrective retrieval that grades what it found, falls back or rewrites the question, then cites the evidence or refuses; agent-trace-analyzer an analyzer that rebuilds an agent's trace as a tree of spans and finds where the time and the cost went and what failed first. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
loop-controller
Loop Controller
arrays-hashing
progressive
medium
python, typescript
ai-llm, backend
backend, ai-engineer
function
tool-permission-gate
Tool Permission Gate
stack, arrays-hashing
progressive
hard
python, typescript
ai-llm, security, backend
ai-engineer, security-engineer, backend
function
context-compaction
Context Compaction
sliding-window, greedy
progressive
hard
python, typescript
ai-llm, backend
ai-engineer, backend, ml-engineer
function
cache-and-router
Cache and Router
arrays-hashing, greedy
progressive
hard
python, typescript
ai-llm, backend
ai-engineer, backend
function
eval-release-gate
Eval Release Gate
arrays-hashing
progressive
hard
python, typescript
ai-llm, backend
ai-engineer, ml-engineer
function
sql-guard
SQL Guard
-
progressive
hard
python, typescript
security, ai-llm
ai-engineer, security-engineer, backend
function
plan-and-execute
Plan and Execute
topological-sort, graphs
progressive
hard
python, typescript
algorithms, backend, ai-llm
general, backend, ai-engineer
function
corrective-rag
Corrective RAG
arrays-hashing, greedy
progressive
hard
python, typescript
ai-llm, backend
ai-engineer, backend
function
agent-trace-analyzer
Agent Trace Analyzer
trees, intervals
progressive
hard
python, typescript
ai-llm, backend
ai-engineer, platform, backend
function
Seven function-size, four-level progressive problems in all six languages on data engineering, in the data domain and for the data-engineer role (ADR 0020): stream-windows groups timed events into tumbling, hopping and session windows, then runs them as a stream where a watermark closes windows and late events are corrected or dropped; cdc-apply applies a change log to a copy of a table, with positions that make replays safe, atomic transactions and schema changes; pipeline-scheduler runs a graph of tasks per daily partition, with retries, reruns and backfills; scd-type2-dimension keeps a type 2 slowly changing dimension, with surrogate keys, point-in-time lookups and late changes; data-quality-gate decides whether a batch may be published, from row and dataset checks, drift and freshness; snapshot-table is a table format of immutable files and snapshots, with time travel, optimistic commits, expiry and compaction; lineage-graph walks column-level lineage to find the impact of a change and where sensitive data ends up. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
stream-windows
Stream Windows
arrays-hashing, intervals
progressive
hard
all six
data, backend
data-engineer, backend
function
cdc-apply
CDC Apply
arrays-hashing
progressive
hard
all six
data, backend
data-engineer, backend
function
pipeline-scheduler
Pipeline Scheduler
graphs, topological-sort, heap
progressive
hard
all six
data, backend
data-engineer, platform
function
scd-type2-dimension
SCD Type 2 Dimension
arrays-hashing, intervals, binary-search
progressive
hard
all six
data, backend
data-engineer, backend
function
data-quality-gate
Data Quality Gate
arrays-hashing
progressive
hard
all six
data, backend
data-engineer, backend
function
snapshot-table
Snapshot Table
arrays-hashing
progressive
hard
all six
data, backend
data-engineer, backend
function
lineage-graph
Lineage Graph
graphs, advanced-graphs
progressive
hard
all six
data, backend
data-engineer, backend
function
One function-size, four-level progressive problem in all six languages on software design: architecture-checker reads modules and their imports as a graph, finds import cycles, checks layer and independence rules with the chain of imports behind each break, then allows exceptions and keeps a baseline of today's breaks that fails only on new ones. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
architecture-checker
Architecture Checker
graphs, advanced-graphs
progressive
hard
all six
software-design
general, backend
function
Five function-size, four-level progressive problems in all six languages on infrastructure as code, as concepts on today's engine; problems on the real tools wait for Phase 17: iac-plan-engine diffs desired and actual infrastructure, orders the steps by dependency, replaces or updates, and applies through failures until a new plan converges; drift-detection compares recorded infrastructure with a scan, reports drift, imports unmanaged resources and reconciles by policy; idempotent-converge brings hosts to a desired state with tasks that change only what differs, a dry run with diffs, handlers, conditions on facts and batches; values-templating deep-merges layers of values into templates, validates the result against a schema and shows which layer set each value; manifest-policy checks deployment manifests against rules given as data, with selectors, exceptions that expire, severities and fixes. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
iac-plan-engine
Infrastructure Plan Engine
topological-sort, heap, graphs
progressive
hard
all six
infrastructure
platform, backend
function
drift-detection
Drift Detection
arrays-hashing, string-matching
progressive
medium
all six
infrastructure
platform, backend
function
idempotent-converge
Idempotent Converge
arrays-hashing
progressive
medium
all six
infrastructure
platform
function
values-templating
Layered Values and Templates
recursion, trees, stack
progressive
hard
all six
infrastructure
platform, backend
function
manifest-policy
Manifest Policy Checks
arrays-hashing, trees, sorting
progressive
hard
all six
infrastructure
platform, backend
function
Three function-size problems on web security, in Python and TypeScript under the Languages rule, each a first problem on its topic: output-encoding-by-context, one function, encodes untrusted text for one of four places in a page, HTML text, a quoted attribute, a URL query value or a JavaScript string, and refuses any other; cors-policy-evaluator, in four levels, evaluates a server's cross-origin sharing policy: origins on an allow-list, preflight requests, credentials with the wildcard, then patterns, the null origin and a linter for risky settings; cert-chain-validator, in four levels, decides whether to trust a server's certificate: dates and hostnames, a chain to a trusted root, constraints on issuers, then revocation and a reason for every rejected path. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
output-encoding-by-context
Output Encoding by Context
-
function
easy
python, typescript
security, frontend
security-engineer, backend, frontend
function
cors-policy-evaluator
CORS Policy Evaluator
string-matching
progressive
medium
python, typescript
security, frontend
security-engineer, backend, frontend
function
cert-chain-validator
Certificate Chain Validator
graphs
progressive
medium
python, typescript
security, identity
security-engineer, backend
function
Two function-size problems on machine learning fundamentals, in Python and TypeScript under the Languages rule: classification-metrics, one function, scores a classifier at a threshold with confusion counts, accuracy, precision, recall and F1 per class, their macro and micro averages, and ROC-AUC; gradient-descent-models, in four levels, trains linear and logistic regression by gradient descent, then picks a penalty by cross-validation and stops early on a validation split without leaking it. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
classification-metrics
Classification Metrics
sorting, arrays-hashing
function
easy
python, typescript
ai-llm
ml-engineer, ai-engineer
function
gradient-descent-models
Gradient Descent Models
math-geometry
progressive
medium
python, typescript
ai-llm
ml-engineer
function
Two function-size, four-level progressive problems in all six languages on testing: test-doubles is a library of test doubles, with stubs that give scripted answers, spies that record calls, strict and lenient mocks with a final check, and a fake clock whose timers fire in order; property-test-runner is a property-based testing engine, with seeded generators and runs that find a counterexample, greedy shrinking, composed and filtered generators, and stateful tests of a buggy queue. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
test-doubles
Test Doubles
arrays-hashing, heap
progressive
medium
all six
software-design
general, backend
function
property-test-runner
Property Test Runner
greedy
progressive
hard
all six
software-design
general, backend
function
Three function-size, four-level progressive problems in all six languages on networking: http-message-parser reads HTTP/1.1 requests from raw bytes: the request line and fields, bodies sized by Content-Length or sent in chunks, requests split across reads, and refusing ambiguous framing; dns-resolver-sim resolves names: answers from a zone, CNAME chains, a walk from the root through referrals with a TTL cache on a virtual clock, then negative answers cached and unrelated glue refused; reliable-transport-sim delivers bytes reliably: segments reordered and deduplicated, retransmission on an RFC 6298 timer, a send window under flow control, then slow start, congestion avoidance and fast retransmit. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
http-message-parser
HTTP Message Parser
string-matching
progressive
hard
all six
systems
backend, platform
function
dns-resolver-sim
DNS Resolver Sim
graphs, arrays-hashing
progressive
hard
all six
systems
backend, platform
function
reliable-transport-sim
Reliable Transport Sim
sliding-window, arrays-hashing
progressive
hard
all six
systems
backend, platform
function
Two function-size, four-level progressive problems in all six languages on operating systems: cpu-scheduler-sim simulates how an operating system shares a CPU, first come first served and shortest job first, round robin, a multi-level feedback queue, then several cores; virtual-memory-sim translates addresses through a page table, with a TLB in front of it, demand paging with FIFO, LRU and clock replacement, then two-level tables and the working set. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
cpu-scheduler-sim
CPU Scheduler Sim
-
progressive
hard
all six
systems
general, platform, backend
function
virtual-memory-sim
Virtual Memory Sim
-
progressive
hard
all six
systems
general, platform
function
One function-size, four-level progressive problem in all six languages on sorting, beside the DSA problems substring-search and first-bad-commit under later DSA additions: sorting-workbench writes four sorts that report their own work, insertion sort, a stable merge sort by a column, quicksort and quickselect with a three-way partition, and an external merge sort. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
sorting-workbench
Sorting Workbench
sorting
progressive
medium
all six
algorithms
general
function
Three function-size, four-level progressive problems in all six languages on the tools of programming: tiny-interpreter interprets a small expression language, from tokens with positions and a syntax tree with precedence to evaluation with closures and a depth limit, and bytecode for a stack machine; line-diff-and-merge is the core of a diff tool, the lines two files share and a line diff, unified hunks, patches applied where lines moved, and a three-way merge; undo-redo-editor is a text buffer with undo and redo, typing grouped into one step, named checkpoints, and a history that keeps every branch. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
tiny-interpreter
Tiny Interpreter
recursion, stack
progressive
hard
all six
algorithms
general
function
line-diff-and-merge
Line Diff and Merge
dp-2d
progressive
hard
all six
algorithms
general
function
undo-redo-editor
Undo and Redo Editor
stack, trees
progressive
easy
all six
software-design
general, frontend
function
Two function-size, four-level progressive problems in all six languages on database internals: btree-index is the B+ tree under a database index, with search and insert by splits, range scans that count page reads, deletes that borrow or merge, then bulk loads and composite keys; mvcc-snapshot-isolation is multiversion storage with snapshot reads, version chains, first committer wins, write skew caught as a dangerous structure of read-write antidependencies, and vacuum. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
btree-index
B-Tree Index
trees, binary-search
progressive
hard
all six
backend
backend, platform
function
mvcc-snapshot-isolation
MVCC Snapshot Isolation
arrays-hashing, graphs
progressive
hard
all six
backend
backend, platform
function
Four function-size, four-level progressive problems in all six languages on distributed systems: logical-clocks timestamps a scripted message history with Lamport clocks, vector clocks, sibling versions of concurrent writes and hybrid logical clocks; consistent-hash-ring places keys on nodes with a consistent hash ring, virtual nodes, a report of the keys that move, replicas and bounded loads; crdt-replicas keeps replicas that accept updates offline and agree after merging, with counters, a last-writer-wins register, an add-wins set and delta sync; raft-sim simulates Raft step by step on a scripted network: the voting rules, leader election, log replication with safe commits, and a partition that loses no committed entry. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
logical-clocks
Logical Clocks
arrays-hashing, sorting
progressive
medium
all six
systems
backend, platform
function
consistent-hash-ring
Consistent Hash Ring
binary-search, bit-manipulation
progressive
medium
all six
systems
backend, platform
function
crdt-replicas
CRDT Replicas
-
progressive
medium
all six
systems
backend, platform
function
raft-sim
Raft Simulation
-
progressive
hard
all six
systems
backend, platform
function
Two function-size, four-level progressive problems in all six languages on platform engineering: semver-resolver resolves package versions, from SemVer 2.0.0 precedence and caret, tilde and wildcard ranges to dependency resolution with backtracking, then explains conflicts and updates a lockfile; slo-burn-rate watches a service level objective, with rates from counters across restarts, latency quantiles from histograms, error budgets and burn rates, then multi-window alerts with their start and stop times. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
semver-resolver
Semver Resolver
backtracking, graphs
progressive
hard
all six
infrastructure
platform, backend
function
slo-burn-rate
SLO Burn Rate
sliding-window, binary-search
progressive
hard
all six
systems
platform, backend
function
Three function-size, four-level progressive problems in all six languages on the internals of everyday tools: regex-engine is a regex engine, from a pattern parsed into a syntax tree and an automaton built by Thompson's construction to matching over sets of states without backtracking, then leftmost-longest search with character classes; query-planner is the query planner of a relational database, from a small SQL subset planned as written with predicate pushdown and row estimates from table statistics to the cheapest left-deep join order by dynamic programming over subsets, then access paths and join methods; memory-allocator is a memory allocator over a fixed heap, from first fit with headers and alignment and coalescing with boundary tags to first, next and best fit compared on one trace, then a buddy allocator.
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
regex-engine
Regex Engine
string-matching
progressive
hard
all six
algorithms
general
function
query-planner
Query Planner
dp-1d, bit-manipulation
progressive
hard
all six
backend
backend
function
memory-allocator
Memory Allocator
intervals, bit-manipulation
progressive
hard
all six
systems
platform, backend
function
Two more function-size, four-level progressive problems on AI engineering, in Python and TypeScript under the Languages rule: agent-job-workers runs agent work as background jobs, from a queue with leases and each step's output kept in a shared store, so that the next worker resumes a job instead of starting over, to a worker count set by the backlog with cooldowns, then a gateway that limits, retries and cuts off the calls to the tools; grounded-memory-store is an agent memory whose claims cite receipts of the texts they came from, from claims with evidence and drift detection when a source changes to re-verification that refreshes or contradicts a claim and reaches the claims built on it, then recall under a trust policy. The labels are columns here and binding, as kind is:
slug
title
patterns
kind
difficulty
languages
domains
job_roles
scope
agent-job-workers
Agent Job Workers
arrays-hashing
progressive
hard
python, typescript
ai-llm, backend, systems
ai-engineer, backend, platform
function
grounded-memory-store
Grounded Memory Store
arrays-hashing, graphs
progressive
medium
python, typescript
ai-llm, backend
ai-engineer, backend
function
lld (8, owner L1, kind design plus rubric.md, problems/)
Labels: domains: [backend], job_roles: [backend] and scope: function on all 8 rows, with no exceptions.
slug
title
covers
difficulty
parking-lot
Parking Lot
Levels, spot sizes, vehicle types, tickets and fees; pricing as an extension point
medium
elevator-system
Elevator System
Multiple cars, request dispatching, direction state machine; dispatch strategy as an extension point
hard
cache-service
Cache Service
LRU-backed cache with TTL, pluggable eviction policy, hit and miss statistics
medium
event-bus
Event Bus
Topic subscriptions, ordered delivery, wildcard topics, unsubscribe and dead-letter handling
medium
vending-machine
Vending Machine
Inventory, coin handling and change making, explicit state machine, refunds
medium
library-management
Library Management
Catalog, members, checkout, holds queue, due dates and fines with explicit timestamps
medium
chess-move-validator
Chess Move Validator
Board model, per-piece move rules, check detection, castling and en passant
hard
notification-service
Notification Service
Channels behind one interface, user preferences, templating, retry and rate limits per channel
Labels: domains: [backend], job_roles: [backend, platform] and scope: function. Exception: bank-transfers also has fintech.
slug
title
covers
difficulty
languages
thread-safe-lru-cache
Thread-Safe LRU Cache
Make a compound structure atomic under concurrent get and put; lock granularity trade-offs
hard
java, kotlin, python, go, rust
bounded-blocking-queue
Bounded Blocking Queue
Fixed-capacity queue with blocking put and take; condition waits with while re-checks, no lost wakeups
medium
all
bank-transfers
Bank Transfers
Concurrent transfers between accounts; deadlock avoidance by lock ordering, conservation invariant
medium
java, kotlin, python, go, rust
token-bucket-limiter
Token Bucket Limiter
Thread-safe token bucket with explicit timestamps; atomic check-then-act, exact grant counts
medium
java, kotlin, python, go, rust
read-write-lock
Read-Write Lock
Many readers or one writer; writer preference to avoid starvation
hard
all
concurrency-limiter
Concurrency Limiter
Counting semaphore with at most k holders and FIFO fairness
medium
all
debugging (23, kind function or design with stub: buggy, problems/)
Labels: domains: [algorithms], job_roles: [general] and scope: function on the first 16 rows, with no exceptions. debug-sorted-report-rows, debug-pagination-query-strings, debug-invoice-total-cents, debug-async-batch-typescript, debug-stale-closure-callbacks, debug-local-day-boundaries, debug-shared-default-config, debug-falsy-plan-update carry theirs in their own table.
The eight planned rows (owner B1) port one bug to the languages it exists in; debug-append-aliasing, debug-nil-map-write, debug-shadowed-variable, debug-range-value-copy, debug-unsigned-underflow, debug-float-ordering, debug-char-boundary, debug-clone-mutation are bugs native to Go and Rust (ADR 0012).
slug
title
covers
difficulty
languages
debug-binary-search-bounds
Debug: Binary Search Bounds
Off-by-one loop condition and midpoint update that skip the last element or loop forever
easy
python, typescript, java, kotlin
debug-grid-aliasing
Debug: Grid Aliasing
Rows that share one list and a shallow copy of BFS state, so one write changes many cells
medium
python, typescript, java, kotlin
debug-running-total-overflow
Debug: Running Total Overflow
32-bit accumulator overflow in a sum of products; the fix is a wider type, not a cast at the end
medium
java, kotlin
debug-sort-comparator
Debug: Leaderboard Comparator
Subtraction comparator that overflows and a tie-break that breaks transitivity
medium
python, typescript, java, kotlin
debug-mutable-default-argument
Debug: Mutable Default Argument
Accumulator default argument that leaks state across calls
easy
python
debug-boxed-equality
Debug: Boxed Integer Equality
Reference comparison of boxed integers that passes small tests and fails above the cache range
medium
java, kotlin
debug-recursion-base-case
Debug: Recursion Base Case
Tree path-sum recursion whose base case treats a null child as a leaf
medium
python, typescript, java, kotlin
debug-window-shrink
Debug: Window Shrink
Sliding window that decrements counts without removing zero entries, so the distinct count is wrong
medium
python, typescript, java, kotlin
debug-append-aliasing
Debug: Append Aliasing
Combinations built with append share one backing array, so a later bundle overwrites one already stored
medium
go
debug-nil-map-write
Debug: Nil Map Write
A nested map whose inner map is never made, so the first write to it panics
easy
go
debug-shadowed-variable
Debug: Shadowed Variable
:= in an inner block declares a new variable, so the outer discount stays zero
easy
go
debug-range-value-copy
Debug: Range Value Copy
A range loop that caps a copy of each struct, so the slice never changes
easy
go
debug-unsigned-underflow
Debug: Unsigned Underflow
A binary search ported from Java whose usize bound goes below zero and panics
easy
rust
debug-float-ordering
Debug: Float Ordering
A never-shown creative's rate of 0 / 0 is NaN, and the partial_cmp(...).unwrap() sort panics on it
medium
rust
debug-char-boundary
Debug: Char Boundary
Truncation by byte index, which panics inside a multi-byte character
medium
rust
debug-clone-mutation
Debug: Clone Mutation
A clone added to satisfy the borrow checker takes the credit, so transfers credit nobody
medium
rust
debug-sorted-report-rows, debug-pagination-query-strings, debug-invoice-total-cents, debug-async-batch-typescript, debug-stale-closure-callbacks, debug-local-day-boundaries, debug-shared-default-config, debug-falsy-plan-update, without debug-async-batch-typescript, which is a project under practical, drill JavaScript traps in small backend code. Each lists TypeScript only, because the bug exists in JavaScript. The labels are columns here.
slug
title
covers
difficulty
languages
domains
job_roles
scope
debug-sorted-report-rows
Debug: Sorted Report Rows
.sort() compares as strings and sorts in place, and indexOf then pairs totals with the wrong regions
medium
typescript
backend
backend
function
debug-pagination-query-strings
Debug: Pagination Query Strings
Query values are strings, so + joins them and > compares them as text, while the numeric defaults hide it
medium
typescript
backend
backend
function
debug-invoice-total-cents
Debug: Invoice Total Cents
Binary floats for money: 19.99 * 100 is not 1999, and rounding the total misses exact half cents
medium
typescript
backend, fintech
backend
function
debug-stale-closure-callbacks
Debug: Stale Closure Callbacks
After-commit callbacks capture variables, not values: a var in a loop and lets outside it
medium
typescript
backend
backend
function
debug-local-day-boundaries
Debug: Local Day Boundaries
new Date("2026-11-05") is midnight UTC, so a shop's local day opens at the wrong instant
medium
typescript
backend
backend
function
debug-shared-default-config
Debug: Shared Default Config
A spread is a shallow copy, so one tenant's change reaches the module-level defaults
medium
typescript
backend
backend
function
debug-falsy-plan-update
Debug: Falsy Plan Update
|| and a bare if eat 0, "" and false; ?? and an explicit check do not
easy
typescript
backend
backend
function
system-design (10, owner S1, problems/)
kind and track are system-design. Labels: domains: [backend], job_roles: [backend, platform] and scope: system. Exception: payments-ledger also has fintech.
slug
title
covers
difficulty
url-shortener
URL Shortener
Key generation, redirects at read-heavy scale, custom aliases, expiry, analytics
medium
news-feed
News Feed
Fan-out on write versus read, celebrity accounts, ranking, pagination, cache tiers
hard
chat-system
Chat System
One-to-one and group messaging, connection gateways, ordering, delivery receipts, offline sync
hard
distributed-rate-limiter
Distributed Rate Limiter
Token bucket versus sliding window, shared counters, consistency versus latency, failure modes
medium
distributed-kv-store
Distributed Key-Value Store
Partitioning, replication, quorums, conflict resolution, membership and repair
hard
search-autocomplete
Search Autocomplete
Prefix index, top-k per prefix, freshness pipeline, latency budget, personalization
medium
video-streaming
Video Streaming
Upload and transcoding pipeline, adaptive bitrate, CDN strategy, metadata and view counts
kind and track are code-review. Labels: domains: [backend], job_roles: [backend] and scope: function. Exceptions: review-auth-endpoint also has security and identity and the role security-engineer, and review-payment-retry also has fintech.
slug
title
covers
difficulty
review-concurrent-counter
Review: Concurrent Counter Service
Check-then-act race, unsynchronized map, lock held across I/O
medium
review-auth-endpoint
Review: Login Endpoint
SQL built by concatenation, non-constant-time comparison, secrets in logs, missing rate limit
medium
review-pagination-api
Review: Pagination API
Offset pagination on a mutating set, breaking response change, inconsistent error shapes
N+1 queries, whole-table load into memory, missing index, quadratic merge
medium
review-flaky-tests
Review: Flaky Test Suite
Wall-clock and ordering dependence, shared fixtures, mocks that assert nothing
medium
Selection notes
The 75 seed problems and the 3 existing problems are all present. The rest were chosen for frequency in senior and staff loops, with one problem per underlying technique where variants exist.
Departures from the example additions in content
Example (lc)
Pattern
Replaced by (lc)
Reason
Copy List with Random Pointer (138)
linked-list
Sort a Linked List (148)
The type DSL has no random-pointer node, so the problem cannot be expressed in v1
Generate Parentheses (22)
stack
moved to backtracking; stack adds Decode String (394) and Minimum Removals to Balance Parentheses (1249)
It is a backtracking problem; stack keeps it as a secondary pattern
Longest Word in Dictionary (720)
tries
Search Suggestions (1268)
Asked more often; exercises prefix lookup under a typing loop
Course Schedule II (210)
topological-sort
All Possible Recipes (2115)
Same algorithm as the seed Course Schedule (207); 2115 adds dependency resolution
Palindromic Substrings (647), House Robber II (213)
dp-1d
Longest Palindromic Substring (5), Stock Trading With Cooldown (309), Minimum Cost for Tickets (983), Job Scheduling for Maximum Profit (1235)
647 and 5 share one technique, 213 is a wrapper over the seed 198; the additions cover state-machine, calendar and weighted-interval DP
Jump Game II (45)
greedy
Candy Distribution (135)
45 repeats the reach argument of the seed 55; 135 adds two-pass greedy
Meeting Rooms (252)
intervals
Interval List Intersections (986)
252 is a sub-question of the seed 253
Reverse Bits (190)
bit-manipulation
Missing Number (268), Sum Without Arithmetic Operators (371)
190 repeats the seed 191's bit walk
Authoring constraints settled here
Row
Constraint
encode-decode-strings, serialize-binary-tree
kind: function. An encoding is implementation-defined and a case cannot feed one op's output into a later op's arguments, so each is one round-trip function (encodeDecode, serializeDeserialize) that the statement requires to go through a single intermediate string built by separate encode and decode helpers
randomized-set
Cases call getRandom only when the set holds exactly one element, so expected outputs stay deterministic; uniformity is argued in the explanation, not tested
Problems with several valid answers (for example alien-dictionary, accounts-merge)