Your result

kody
Join Kody

Kody Tower

List view

Your 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 Help
3 free trialsJoin to save your climb
1
BeginnerFirst stepsSequences

Explain how ordered movement instructions change a position.

2
BeginnerFind the patternLoops

Trace a repeated sequence and identify the current iteration.

3
BeginnerChoose your pathConditions

Predict when an IF action runs and when it is skipped.

4
BeginnerPaint with coordinatesCoordinates

Use column and row indexes to change specific cells.

5
BeginnerA variable changesVariables

Trace assignments to a variable and predict its next value.

01

First sparks

6
BeginnerRead your first codePython expressions

Read and predict a program state.

7
BeginnerPut data in orderArrays

Track indexed values through swaps and check ascending order.

8
BeginnerYour first terminal missionCLI

Explain a command and its arguments while inspecting and copying data.

9
BeginnerBranch detectivePython conditions

Read and predict a program state.

10
BeginnerBoss: the logic gateSequences, loops and conditions

Predict when an IF action runs and when it is skipped. Read and predict a program state.

02

Logic lands

11
BeginnerBuild a pixel patternIndexed data

Use column and row indexes to change specific cells.

12
BeginnerTrace a Java loopJava loops

Read and predict a program state.

13
BeginnerSort five signalsSorting

Track indexed values through swaps and check ascending order.

14
BeginnerInspect before copyingCLI inspection

Explain a command and its arguments while inspecting and copying data.

15
BeginnerTrace a C++ arrayC++ indexing

Read and predict a program state.

03

Data district

16
BeginnerFrom value to algorithmState transformations

Trace assignments to a variable and predict its next value. Read and predict a program state.

17
BeginnerA complete color matrixCoordinate systems

Use column and row indexes to change specific cells.

18
BeginnerCompare three languagesTypes and expressions

Read and predict a program state.

19
BeginnerSix items, one planAlgorithm planning

Track indexed values through swaps and check ascending order.

20
BeginnerBoss: the data vaultCLI, arrays and code tracing

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.

04

The algorithm vault

21
BeginnerSpot an off-by-oneLoop boundaries

Read and predict a program state.

22
BeginnerNavigate a crowded workspaceCLI arguments

Explain a command and its arguments while inspecting and copying data.

23
BeginnerFunctions return a resultFunctions

Read and predict a program state.

24
BeginnerSolve and explainData and conditions

Track indexed values through swaps and check ascending order. Read and predict a program state.

25
BeginnerThe next horizonProgramming foundations

Predict when an IF action runs and when it is skipped. Read and predict a program state.

05

The next horizon

26
Intermediate practiceSwitch on a decisionBoolean AND

Evaluate a Boolean expression and relate inputs to its truth value.

27
Intermediate practiceForge your first labelText pipelines

Predict how a sequence of text transformations changes a string.

28
Intermediate practiceA stack remembersLast in, first out

Trace stack operations using last-in, first-out state.

29
Intermediate practiceTrace a string slicePython strings

Read and predict a program state.

30
Intermediate practiceBoss: signal stationCircuits, text and stacks

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.

06

Signal station

31
Intermediate practiceAny signal can open the gateBoolean OR

Evaluate a Boolean expression and relate inputs to its truth value.

32
Intermediate practiceNormalize a player nameText normalization

Predict how a sequence of text transformations changes a string.

33
Intermediate practiceRestore the stackStack invariants

Trace stack operations using last-in, first-out state.

34
Intermediate practiceRead a Java collectionJava collections

Read and predict a program state.

35
Intermediate practiceFind the release noteCLI investigation

Explain a command and its arguments while inspecting and copying data.

07

Memory islands

36
Intermediate practiceAn odd signalBoolean parity

Evaluate a Boolean expression and relate inputs to its truth value. Read and predict a program state.

37
Intermediate practiceA mirrored messageTransformation order

Predict how a sequence of text transformations changes a string.

38
Intermediate practiceCompose a stack planStack composition

Trace stack operations using last-in, first-out state.

39
Intermediate practiceC++ value detectiveC++ references

Read and predict a program state.

40
Intermediate practiceBoss: systems workshopData, CLI and boundary checks

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.

08

Systems workshop

41
Intermediate practiceEvery switch mattersCompound conditions

Evaluate a Boolean expression and relate inputs to its truth value. Read and predict a program state.

42
Intermediate practicePrepare your workspaceVirtual filesystem

Explain a command and its arguments while inspecting and copying data. Predict how a sequence of text transformations changes a string.

43
Intermediate practiceData structure detectiveStacks and arrays

Trace stack operations using last-in, first-out state. Read and predict a program state.

44
Intermediate practiceFollow nested functionsReusable functions

Read and predict a program state.

45
Intermediate practiceDebug the stateDebugging state transitions

Trace assignments to a variable and predict its next value. Read and predict a program state.

09

Code constellation

46
Intermediate practiceExplain the decisionTesting Boolean rules

Evaluate a Boolean expression and relate inputs to its truth value. Read and predict a program state.

47
Intermediate practiceBuild a release labelText and filenames

Predict how a sequence of text transformations changes a string. Explain a command and its arguments while inspecting and copying data.

48
Intermediate practiceProtect a stack boundaryBounded data structures

Trace stack operations using last-in, first-out state. Read and predict a program state.

49
Intermediate practicePrepare for the summitAlgorithm planning

Track indexed values through swaps and check ascending order. Read and predict a program state.

50
Intermediate practiceBoss: the summitFoundation synthesis

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.

10

The summit

51
BeginnerDecisions at the boundaryInclusive comparisons

Compare the boundary itself, not just the values on either side. Predict an if/else result before trying another input.

52
BeginnerCount before you repeatLoop accumulation

Follow a counter and an accumulator separately. The loop variable is not necessarily the result you are building.

53
BeginnerTwo names, one listValues and aliases

Distinguish changing a shared list from changing which list a name refers to. These are original Python reading exercises, not live code execution.

54
BeginnerMake a clean usernameText transformation order

Practice a text pipeline, then explain why reversing its steps can change the result. This simulator is local text manipulation, not account editing.

55
BeginnerCoordinates leave a trailIndexed grids

Recreate a symmetric signal and connect the displayed column/row coordinates to a precise location.

11

Foundation trails

56
BeginnerA function is a contractInputs and return values

Reason about a function through its input and returned value. Calling a function and changing the caller variable are separate operations.

57
BeginnerEqual values still belongDuplicates and ordering

A sorted collection can contain equal values. Preserve every occurrence while arranging neighbors in nondecreasing order.

58
BeginnerInspect a release noteVirtual CLI verification

Use filenames and contents as separate clues. Copy only the requested data and read the destination to verify it.

59
BeginnerSay exactly what you meanBoolean combinations

Evaluate AND, OR and NOT by their truth conditions, then connect those rules to an access decision.

60
BeginnerBoss: the foundation workshopState, boundaries and testing

Bring prediction, precise conditions and boundary tests together. Solve the machine, then explain what would falsify a proposed rule.

12

Foundation workshop

61
Intermediate practiceSearch a sorted signalBinary search

Assume random access and ascending sorted input. Discard the half that cannot contain the target, and shrink the remaining interval every time.

62
Intermediate practiceTwo pointers, one sumMonotone search

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.

63
Intermediate practiceCount without losing dataFrequency maps

A frequency map stores a count per value. An absent key starts at zero; each occurrence increments exactly one count.

64
Intermediate practiceProtect the stack contractStack invariants

Connect LIFO behavior to expression structure. Before reading a top element, verify that the stack is nonempty.

65
Intermediate practiceA queue keeps its promiseFIFO and data structure choice

Contrast queue order with stack order. Select an efficient representation when removals must come from the front.

13

Strategy garden

66
Intermediate practiceFailure is a test caseBoundary testing

Testing should include empty input, missing values and threshold equality. A successful example alone cannot establish a general algorithm claim.

67
Intermediate practiceAnswer many range sumsPrefix sums

Precompute cumulative totals to avoid resumming every query. Define the empty prefix and interval convention explicitly.

68
Intermediate practiceRecursion needs a way homeBase cases and progress

A recursive function needs both a stopping case and a measure that moves toward it. Assume nonnegative integer input in these examples.

69
Intermediate practiceCount growth, not millisecondsAsymptotic reasoning

State the input-size measure and the operation being counted. O-notation describes a bound, not an exact timing on a particular computer.

70
Intermediate practiceBoss: the strategy observatorySearch, representation and evidence

Choose a structure based on the operations you need, then challenge a proposed algorithm with boundary cases and a runtime argument.

14

Strategy observatory

71
ExpertProve the search boundaryLoop invariants

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.

72
ExpertOne expensive appendAmortized analysis

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.

73
ExpertFind the fewest hopsBreadth-first search

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.

74
ExpertSchedule without a cycleDAG ordering

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.

75
ExpertWeights change the promiseDijkstra and counterexamples

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.

15

Algorithm frontier

76
ExpertWhen greedy change failsDynamic programming

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.

77
ExpertDo not reuse the itemZero-one knapsack

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.

78
ExpertA hash promise has assumptionsExpected and worst-case bounds

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.

79
ExpertSort records without losing intentStability and memory tradeoffs

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.

80
ExpertBoss: defend the algorithmAlgorithm selection and counterexamples

Combine graph assumptions, dynamic-programming state and falsifying examples. These are advanced formative reasoning tasks, not live language execution or an Expert certification.

16

Proof and possibility

WELCOME TO KODY

A little play. A lot of possibility.

I’m Kody, your coding companion. Your adventure is ready. Let’s find our way around.

Log in