
1. Array Plains
Scanning, reversing, prefix sums, rotation, Kadane
Code the Hero turns data structures and algorithms into a pixel adventure. You write JavaScript, press Run, and a hero walks, lifts, swaps, stacks and searches — exactly as your code says, one highlighted line at a time.
No sign-up. Works on phones and laptops. Your progress saves in your browser.
Every level is one small coding task set in a pixel world — the kind of problem you meet in placement tests and interviews.
Every level starts with partly written code. Tap command chips to type fast on a phone.
The hero acts out each command while the running line lights up, so you see how the algorithm works.
Your code is also tested on hidden inputs. Efficient solutions — the right Big-O — earn three stars.
// Level 1.1: find the heaviest crate let best = crates.get(0); for (let i = 1; i < crates.length; i++) { let w = crates.get(i); // hero lifts crate i if (w > best) best = w; } submit(best); // ★★★ one lift per crate
Each one comes with a plain-language hint on how to fix your code.
The core interview syllabus in learning order. Each world ends with a boss.

Scanning, reversing, prefix sums, rotation, Kadane

Two pointers and sliding windows

Hash maps, two sum, anagrams, prefix sums

Binary search and searching on the answer

Selection, insertion, merge and quick sort

Recursion, backtracking, N-Queens

Linked lists and Floyd's cycle detection

Stacks, queues, monotonic stacks, deques

Traversals, binary search trees, heaps

DFS, BFS, topological sort, union-find, Dijkstra
Preparing for campus placements and coding rounds, on a budget phone or a laptop.
Switching jobs and brushing up on patterns and Big-O in short sessions.
Know a little code and want DSA to finally click, with starter code in every level.
Planned from ₹149 a month, ₹999 a year or ₹1,999 once.
No. The game runs in your browser on phones, tablets and laptops. On a phone you can also add it to your home screen, and it keeps working offline.
JavaScript. Python is planned for a later update.
Yes. Your code runs in a safe sandbox inside your browser. Every command it calls is recorded and acted out by the hero, then your code is checked on hidden inputs so it has to truly work.
In this browser, on this device. Accounts with cloud save across devices are coming soon.
An Android app is on the way. The web version is the same game.
King Brute broke the world with slow, clumsy code. Only you can fix it.
▶ Start Level 1