Small games, and the code behind them.

Codesarray makes calm mobile games for Android, and short videos and articles that show how code works, one idea at a time.

Games

Open, play a round, put the phone down. No accounts, and every game plays offline.

Videos

Coding, algorithms and data structures, one language at a time. Every example on screen is real code with its real output. Python comes first.

  • Video10 min 16 s

    JavaScript linked lists: build, reverse, and detect a cycle

    Delete the first item of a million-item array and nearly a million items slide; a linked list moves one arrow. Node and LinkedList classes built from scratch, reverse in place with three pointers, a doubly linked list unlinking a node in two assignments, Floyd's two runners catching a cycle, and the honest benchmark: 100,000 front inserts, 727 ms against 3 ms — then the array winning reads by thousands of times. Four programs walked through line by line with their real output.

  • Video8 min 39 s

    JavaScript stacks and queues: why shift() is slow and the fix

    Same 100,000 items, two queues: shift() took 13.2 seconds, a head pointer 4.5 milliseconds. Push and pop as a stack on the undo history, the shift trap measured with console.time, a Queue class and a Deque built from scratch with private fields, and a stack checking the brackets in a line of code in one pass. Five programs walked through line by line with their real output.

  • Video14 min 12 s

    JavaScript promises and async/await: then, catch, Promise.all

    fetch hands you Promise { pending } — an IOU, not the data. The event loop in one picture, setTimeout callbacks building the pyramid of doom, then/catch/finally chains, async/await with ordinary try/catch, and Promise.all running three 300 ms tasks in 312 ms where sequential awaits took 915. Five programs walked through line by line with their real output.

See the whole channel on YouTube

Articles

The same lessons, written down, with code you can copy.

  • JavaScriptIntermediate

    JavaScript linked lists: build, reverse, and detect a cycle

    A chain of plain objects pointing at each other: prepend in two pointer moves where unshift took 727 ms, reverse in place with three pointers, a doubly linked list unlinking a node in two assignments, and Floyd's two runners catching a cycle before your loop hangs. Four short programs with their real output.

  • JavaScriptIntermediate

    JavaScript stacks and queues: why shift() is slow and the fix

    Push and pop make an array a perfect stack, but shift() moves every item, so draining a 100,000-item queue took 13.2 seconds against 4.5 milliseconds for a head pointer. A Queue class, a Deque with both ends open, and bracket matching with a stack. Five short programs with their real output.

  • JavaScriptIntermediate

    JavaScript promises and async/await: then, catch, Promise.all

    The event loop in one picture, callbacks to flat then/catch/finally chains, async functions that pause at await while the program keeps going, Promise.all against sequential awaits with real timings, fetch, and ES2026's Array.fromAsync. Six short programs with their real output.

Browse all articles by language and level

Work

Codesarray is created by Anand Rathore, a software developer. The day job, for more than five years, has been payment systems.

Payment gateways, settlement and reconciliation: software where every write is audited and a wrong number is somebody's money. That work covers the whole path, from gathering requirements and designing the system to building, deploying and running it.

Open to freelance and contract projects, to full-time roles, and to collaborations and sponsorship on the YouTube channel. Remote only.

Experience
5+ years in fintech
Backend
Python, Java, Django, Spring Boot, Node.js
Data
PostgreSQL, MySQL, MongoDB, Kafka
Frontend
React, TypeScript, Tailwind CSS
Also
Android games in Kotlin
Where
India, working remotely