Jump to a problem, path or page
Jump to a problem, path or page
Problem library
High-level architecture and low-level object design, each with progressive hints, a written analysis, approach and worked solution.
Model spots, tickets, and pricing with clear responsibilities and safe allocation.
Separate dispatch policy from car state and enforce movement safety invariants.
Model selection, payment, dispensing and refunds with guarded state transitions.
Split expenses fairly with exact money arithmetic and an auditable ledger.
Reserve seats with expiring holds and reconcile payment without overselling.
Model titles, physical copies, loans and reservations without double lending.
Compose structured logging, redaction and bounded asynchronous output.
Model a directory tree with path resolution, safe moves and consistent mutations.
Define subscription, dispatch and error semantics for a reusable event dispatcher.
Separate board rules, turn handling and game state for a testable game engine.
Model closed, open and half-open states with bounded recovery probes.
Model reversible commands, history branches and atomic grouped edits.
Allocate compatible compartments and coordinate pickup credentials with hardware outcomes.
Reserve time intervals with atomic overlap checks and explicit timezone boundaries.
Model card identity, fair shuffling and atomic dealing with injectable randomness.
Resolve object graphs with scopes, cycle detection and deterministic cleanup.
Evaluate composable discount rules with exact arithmetic and atomic redemption limits.
Model guarded signal phases, timed transitions and deterministic event handling.
Model simultaneous movement, food growth and body collisions with clear invariants.
Merge configuration sources with provenance, validation and atomic reload.
Model cart mutations, version checks and reproducible price quotes.
Evaluate typed rules with deterministic cohorts and traceable fallback reasons.
Model authenticated sessions, withdrawal authorization and uncertain dispenser outcomes.
Validate fleet placement and turn-based shots without exposing hidden opponent boards.