
Kody Tower
List viewYour climb
Start small. Climb higher. Code your way through 80 discoveries.
Scroll up, use arrow keys or press Higher to explore. Select a numbered level to play; select its information button for a preview.
Boss checkpoints every 10 levels. Trial progress stays in this browser; create an account to save your climb.
Visit HelpChoose a skill track
Choose your starting point. Each track unlocks in order; your existing clears stay saved.
BeginnerSequences, variables, loops and first programs. New practice connects predictions to edge cases.0 / 35 cleared · Sign in to save progress Intermediate practiceCombine state and data structures, then reason about searching, testing and efficiency.0 / 35 cleared · Sign in to save progress ExpertInvariants, graph algorithms, dynamic programming and tradeoffs. Assumes familiarity with loops, collections and asymptotic notation; no certification is implied.0 / 10 cleared · Sign in to save progress Track choice is a preference, not a qualification. Expert stages teach advanced reasoning; they do not certify mastery.Explain how ordered movement instructions change a position.
Trace a repeated sequence and identify the current iteration.
Predict when an IF action runs and when it is skipped.
Use column and row indexes to change specific cells.
Trace assignments to a variable and predict its next value.
First sparks
Read and predict a program state.
Track indexed values through swaps and check ascending order.
Explain a command and its arguments while inspecting and copying data.
Read and predict a program state.
Predict when an IF action runs and when it is skipped. Read and predict a program state.
Logic lands
Use column and row indexes to change specific cells.
Read and predict a program state.
Track indexed values through swaps and check ascending order.
Explain a command and its arguments while inspecting and copying data.
Read and predict a program state.
Data district
Trace assignments to a variable and predict its next value. Read and predict a program state.
Use column and row indexes to change specific cells.
Read and predict a program state.
Track indexed values through swaps and check ascending order.
Explain a command and its arguments while inspecting and copying data. Track indexed values through swaps and check ascending order. Read and predict a program state.
The algorithm vault
Read and predict a program state.
Explain a command and its arguments while inspecting and copying data.
Read and predict a program state.
Track indexed values through swaps and check ascending order. Read and predict a program state.
Predict when an IF action runs and when it is skipped. Read and predict a program state.
The next horizon
Evaluate a Boolean expression and relate inputs to its truth value.
Predict how a sequence of text transformations changes a string.
Trace stack operations using last-in, first-out state.
Read and predict a program state.
Evaluate a Boolean expression and relate inputs to its truth value. Predict how a sequence of text transformations changes a string. Trace stack operations using last-in, first-out state.
Signal station
Evaluate a Boolean expression and relate inputs to its truth value.
Predict how a sequence of text transformations changes a string.
Trace stack operations using last-in, first-out state.
Read and predict a program state.
Explain a command and its arguments while inspecting and copying data.
Memory islands
Evaluate a Boolean expression and relate inputs to its truth value. Read and predict a program state.
Predict how a sequence of text transformations changes a string.
Trace stack operations using last-in, first-out state.
Read and predict a program state.
Explain a command and its arguments while inspecting and copying data. Trace stack operations using last-in, first-out state. Read and predict a program state.
Systems workshop
Evaluate a Boolean expression and relate inputs to its truth value. Read and predict a program state.
Explain a command and its arguments while inspecting and copying data. Predict how a sequence of text transformations changes a string.
Trace stack operations using last-in, first-out state. Read and predict a program state.
Read and predict a program state.
Trace assignments to a variable and predict its next value. Read and predict a program state.
Code constellation
Evaluate a Boolean expression and relate inputs to its truth value. Read and predict a program state.
Predict how a sequence of text transformations changes a string. Explain a command and its arguments while inspecting and copying data.
Trace stack operations using last-in, first-out state. Read and predict a program state.
Track indexed values through swaps and check ascending order. Read and predict a program state.
Evaluate a Boolean expression and relate inputs to its truth value. Predict how a sequence of text transformations changes a string. Trace stack operations using last-in, first-out state. Read and predict a program state.
The summit
Compare the boundary itself, not just the values on either side. Predict an if/else result before trying another input.
Follow a counter and an accumulator separately. The loop variable is not necessarily the result you are building.
Distinguish changing a shared list from changing which list a name refers to. These are original Python reading exercises, not live code execution.
Practice a text pipeline, then explain why reversing its steps can change the result. This simulator is local text manipulation, not account editing.
Recreate a symmetric signal and connect the displayed column/row coordinates to a precise location.
Foundation trails
Reason about a function through its input and returned value. Calling a function and changing the caller variable are separate operations.
A sorted collection can contain equal values. Preserve every occurrence while arranging neighbors in nondecreasing order.
Use filenames and contents as separate clues. Copy only the requested data and read the destination to verify it.
Evaluate AND, OR and NOT by their truth conditions, then connect those rules to an access decision.
Bring prediction, precise conditions and boundary tests together. Solve the machine, then explain what would falsify a proposed rule.
Foundation workshop
Assume random access and ascending sorted input. Discard the half that cannot contain the target, and shrink the remaining interval every time.
On a sorted array, move the left pointer when the sum is too small and the right pointer when it is too large. Use distinct indexes.
A frequency map stores a count per value. An absent key starts at zero; each occurrence increments exactly one count.
Connect LIFO behavior to expression structure. Before reading a top element, verify that the stack is nonempty.
Contrast queue order with stack order. Select an efficient representation when removals must come from the front.
Strategy garden
Testing should include empty input, missing values and threshold equality. A successful example alone cannot establish a general algorithm claim.
Precompute cumulative totals to avoid resumming every query. Define the empty prefix and interval convention explicitly.
A recursive function needs both a stopping case and a measure that moves toward it. Assume nonnegative integer input in these examples.
State the input-size measure and the operation being counted. O-notation describes a bound, not an exact timing on a particular computer.
Choose a structure based on the operations you need, then challenge a proposed algorithm with boundary cases and a runtime argument.
Strategy observatory
Assume sorted random-access data and zero-based indexes. Reason about the half-open lower-bound search: all indexes before lo hold values below x, and all indexes at or after hi hold values at least x.
Model a dynamic array that doubles capacity when full. Copying existing elements during a resize is expensive, but resizes are geometrically spaced. Count copied old elements, separately from writing new ones.
Use adjacency lists and mark a vertex when it is enqueued. In an unweighted graph, FIFO exploration discovers vertices by nondecreasing edge distance; this does not solve arbitrary weighted shortest paths.
An edge A->B means A must precede B. A topological ordering exists exactly when the directed graph has no directed cycle. Different valid orders may exist.
For the standard settled-once Dijkstra algorithm, nonnegative edge weights justify finalizing the nearest unsettled vertex. A negative edge can invalidate that greedy choice even without a negative cycle.
Algorithm frontier
For unlimited positive integer coin values, define dp[s] as the fewest coins totaling s. Set dp[0]=0 and unreachable states to infinity. Build smaller sums before larger ones.
Each item may be selected at most once. In a one-dimensional capacity DP, update capacities downward so a transition reads values from before the current item was added.
State the model before claiming constant-time lookup. In a separate-chaining hash table, many colliding keys can occupy one chain; expected behavior and worst-case behavior differ.
A stable sort preserves the relative order of equal-key records. Runtime, stability and auxiliary space are separate properties; name the concrete implementation when comparing them.
Combine graph assumptions, dynamic-programming state and falsifying examples. These are advanced formative reasoning tasks, not live language execution or an Expert certification.