Find a topic
Search chapters
Search 28 chapters across DSA, System Design and AI-Native Engineering.
Context and output contracts for AI features
Define the task, evidence, boundaries and output contract before spending time on clever prompt wording.
Structured outputs and validation
Separate parseable JSON from a valid result, then check source identifiers and business rules before an answer enters your application.
Retrieval, evidence and source citations
Build an evidence path from a user’s question to an answer, including permissions, missing information and honest citations.
Chunking and retrieval quality
Keep the evidence needed to answer a question together, preserve document context, and measure retrieval before changing generation.
Choosing between workflows and agents
Choose between a fixed flow and a model-directed loop, then bound tools, side effects and stopping conditions.
Tool permissions and side effects
Treat a tool call as an untrusted request, authorise it in application code, and make repeated execution safe.
Building useful AI evaluations
Turn a polished demo into a repeatable evaluation with useful failure slices, grounded grading and a real release decision.
AI request budgets and graceful failure
Bound context, retries and tool work, then define what the user sees when the feature cannot complete within its budget.
Time complexity and cost models
Build a cost model, distinguish worst-case from amortised work, and stop treating Big O as a stopwatch.
Binary search: boundaries and invariants
Find boundaries, handle duplicates, and understand why every discarded value can safely stay discarded.
Prefix sums and range queries
Turn repeated range queries into prefix differences, and understand the update cost that comes with the shortcut.
Hash maps and sliding windows
Use a hash map to remember useful facts, then build a sliding window that handles repeated values correctly.
Linked lists and pointer updates
Reverse a singly linked list, trace reference changes, and separate cheap rewiring from expensive searching.
Stacks, queues and processing order
Use a stack to match nested structure, compare it with a queue, and make empty-state behaviour explicit.
Merge sort and stable ordering
Build a stable merge sort, account for copying, and choose tie-breaking deliberately.
Recursion and backtracking
Explore subsets with backtracking, keep branch state clean, and understand why output size sets a lower bound.
Binary search trees and validation
Search an ordered tree, validate ancestor bounds, and see why a binary tree is not automatically logarithmic.
Dependencies and topological sorting
Model dependencies, derive a topological order, and recognise when a cycle makes the requested order impossible.
Breadth-first search and shortest paths
Use a queue to find the fewest-hop route, reconstruct the path, and see exactly when BFS stops being enough.
Dynamic programming: states and transitions
Define a useful state, derive a recurrence, and recover an optimal solution rather than just its score.
Request latency and critical paths
Trace a request, separate service time from waiting, and build a latency budget you can actually investigate.
Load balancing and health checks
Route traffic to usable capacity, distinguish readiness from liveness, and plan for the moment every target looks unhealthy.
Database indexes and cache consistency
Design an index around a real query, read its plan, and reason through the stale-data race a cache introduces.
Replication and consistency
Follow a write from the primary to a replica, explain a stale read, and define what failover is allowed to lose.
Partitioning and hot keys
Split data around real access patterns, recognise a hot key, and account for the read work created by write sharding.
Queues, duplicate delivery and idempotency
Walk through a worker crash, a duplicate delivery, and the database boundary that makes a repeated operation safe.
Timeouts, retries and exponential backoff
Make deadlines, retry limits, idempotency and jitter work together without turning a slow dependency into a larger outage.
Metrics, logs and traces
Use each telemetry signal to answer a specific question, correlate one slow request, and keep labels and payloads under control.
Data Structures & Algorithms
Build the habits that turn unfamiliar problems into structures, choices, and testable solutions.
System Design
See the forces inside reliable systems—and learn to reason about the trade-offs that shape them.
AI-Native Engineering
Use AI as an engineering material and working partner—without surrendering judgment or craft.
Search runs in your browser. Saved chapters and reading progress stay on this device.