Free to start · no account needed

DSA Quest

A map of algorithm worlds. Spot the signal, move the pieces, face a mock interview. Come back for recall missions so skill becomes retained.

Continue adventure → Next: Arrays: Positions, Not Labels

DSA Foundations

You are here

Training garden

Start with array positions, loop boundaries, and the cost of repeated work. Build the state and cost intuition every later DSA pattern depends on.

0/5

Arrays & Hashing

Open

Key market

HashSet for membership, Dictionary for counting and complement lookups, canonical keys for grouping, prefix-sum counts, and prefix×suffix products. Contains Duplicate, Two Sum, Group Anagrams, Subarray Sum Equals K, Product Except Self.

0/6

Two Pointers

Open

Twin-lantern bridge

Converge two indices toward each other, using sorted structure to prove a move is safe before making it. Container With Most Water, 3Sum, Valid Palindrome (skip junk, compare ends).

0/4

Sliding Window

Open

Observatory train

Grow a window while a constraint holds, shrink it the moment the constraint breaks. Longest Substring Without Repeating Characters, Minimum Window Substring, fixed-k sums, and the rate limiter every API gateway runs.

0/4

Prefix Sum

Open

Running-sum ridge

Pay once for a running total, then answer range sums, balance points, and modular subarray checks in linear time. Range Sum Query, Pivot Index, Continuous Subarray Sum. (Subarray Sum Equals K also appears under Arrays & Hashing as the hash hybrid.)

0/3

Binary Search

Open

Crystal cave

Every comparison eliminates half of everything that could still be the answer. Works on sorted arrays, answer ranges like Koko Eating Bananas, rotated sorted search, and finding the rotation minimum.

0/4

Stacks

Open

Plate tower temple

Use last-in-first-out state for nesting, undo, traversal, next greater element, daily temperatures, and nested decode-string expansion.

0/4

Linked Lists

Open

Node vine forest

Follow references, preserve links while rewiring, detect cycles, merge sorted lists, and remove the nth node from the end with a pointer gap.

0/4

Intervals

Open

Calendar ridge

Sort ranges, merge overlaps, insert into a sorted day, and size rooms by peak concurrency. Merge Intervals, Insert Interval, Meeting Rooms II.

0/3

Recursion

Open

Call-stack spire

Phase 4: call stack frames, base case + progress, and Climbing Stairs recurrence. Foundation for Trees and Graphs.

0/3

Trees

Open

Canopy trail

Binary nodes, DFS preorder/inorder/postorder, and maximum depth. Builds on recursion’s null base case and call stack.

0/3

Graphs

Open

Node web

Adjacency lists, BFS hop layers (queue + visited), and DFS with a visited set for cycles. Builds toward topo sort and weighted shortest paths later.

0/3

Heaps

Open

Peak heap

Binary heap property in an array, push/pop with sift up/down, and top-K with a size-K min-heap. Priority queues for schedulers and leaderboards.

0/3

Dynamic Programming

Open

Memo maze

Phase 5 DP: stairs, house robber I/II, unique paths I/II, coin change, LIS, edit distance, knapsack, LCS, min path, partition, target sum, decode ways, max product.

0/15
List view of worlds

Decisions teach. Typing comes later. Full problem practice lives in Interview Problems.