Skip to main content
← All guides

Find a topic

Search chapters

Search 28 chapters across DSA, System Design and AI-Native Engineering.

TRY
31 results
01
AI-native engineering · 4 min read

Context and output contracts for AI features

Define the task, evidence, boundaries and output contract before spending time on clever prompt wording.

↗
02
AI-native engineering · 3 min read

Structured outputs and validation

Separate parseable JSON from a valid result, then check source identifiers and business rules before an answer enters your application.

↗
03
AI-native engineering · 5 min read

Retrieval, evidence and source citations

Build an evidence path from a user’s question to an answer, including permissions, missing information and honest citations.

↗
04
AI-native engineering · 5 min read

Chunking and retrieval quality

Keep the evidence needed to answer a question together, preserve document context, and measure retrieval before changing generation.

↗
05
AI-native engineering · 4 min read

Choosing between workflows and agents

Choose between a fixed flow and a model-directed loop, then bound tools, side effects and stopping conditions.

↗
06
AI-native engineering · 3 min read

Tool permissions and side effects

Treat a tool call as an untrusted request, authorise it in application code, and make repeated execution safe.

↗
07
AI-native engineering · 4 min read

Building useful AI evaluations

Turn a polished demo into a repeatable evaluation with useful failure slices, grounded grading and a real release decision.

↗
08
AI-native engineering · 5 min read

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.

↗
09
Algorithms · 4 min read

Time complexity and cost models

Build a cost model, distinguish worst-case from amortised work, and stop treating Big O as a stopwatch.

↗
10
Algorithms · 5 min read

Binary search: boundaries and invariants

Find boundaries, handle duplicates, and understand why every discarded value can safely stay discarded.

↗
11
Algorithms · 4 min read

Prefix sums and range queries

Turn repeated range queries into prefix differences, and understand the update cost that comes with the shortcut.

↗
12
Algorithms · 4 min read

Hash maps and sliding windows

Use a hash map to remember useful facts, then build a sliding window that handles repeated values correctly.

↗
13
Algorithms · 4 min read

Linked lists and pointer updates

Reverse a singly linked list, trace reference changes, and separate cheap rewiring from expensive searching.

↗
14
Algorithms · 4 min read

Stacks, queues and processing order

Use a stack to match nested structure, compare it with a queue, and make empty-state behaviour explicit.

↗
15
Algorithms · 4 min read

Merge sort and stable ordering

Build a stable merge sort, account for copying, and choose tie-breaking deliberately.

↗
16
Algorithms · 4 min read

Recursion and backtracking

Explore subsets with backtracking, keep branch state clean, and understand why output size sets a lower bound.

↗
17
Algorithms · 3 min read

Binary search trees and validation

Search an ordered tree, validate ancestor bounds, and see why a binary tree is not automatically logarithmic.

↗
18
Algorithms · 4 min read

Dependencies and topological sorting

Model dependencies, derive a topological order, and recognise when a cycle makes the requested order impossible.

↗
19
Algorithms · 4 min read

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.

↗
20
Algorithms · 4 min read

Dynamic programming: states and transitions

Define a useful state, derive a recurrence, and recover an optimal solution rather than just its score.

↗
21
System design · 5 min read

Request latency and critical paths

Trace a request, separate service time from waiting, and build a latency budget you can actually investigate.

↗
22
System design · 4 min read

Load balancing and health checks

Route traffic to usable capacity, distinguish readiness from liveness, and plan for the moment every target looks unhealthy.

↗
23
System design · 4 min read

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.

↗
24
System design · 5 min read

Replication and consistency

Follow a write from the primary to a replica, explain a stale read, and define what failover is allowed to lose.

↗
25
System design · 5 min read

Partitioning and hot keys

Split data around real access patterns, recognise a hot key, and account for the read work created by write sharding.

↗
26
System design · 4 min read

Queues, duplicate delivery and idempotency

Walk through a worker crash, a duplicate delivery, and the database boundary that makes a repeated operation safe.

↗
27
System design · 4 min read

Timeouts, retries and exponential backoff

Make deadlines, retry limits, idempotency and jitter work together without turning a slow dependency into a larger outage.

↗
28
System design · 4 min read

Metrics, logs and traces

Use each telemetry signal to answer a specific question, correlate one slow request, and keep labels and payloads under control.

↗
29
Subject

Data Structures & Algorithms

Build the habits that turn unfamiliar problems into structures, choices, and testable solutions.

↗
30
Subject

System Design

See the forces inside reliable systems—and learn to reason about the trade-offs that shape them.

↗
31
Subject

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.