MasterCoding practice

Learn by writing real code

Practice course concepts in an editable Kotlin workspace with instant checks, progressive hints, reference solutions, and visual execution traces.

Solution.kt
fun textLength(value: Any): Int =
    (value as? String)?.length ?: -1
✓ Uses a safe cast✓ Handles null safely

121

Interactive challenges

98

Write-code exercises

39

Visual walkthroughs

All learning tracks

One practice home for every course

Kotlin practice is live. The same exercise format is ready to expand across every MasterCoding track.

Available

Kotlin

Google's modern language for Android. Concise, safe, and a joy to write.

Coming soon

AI

Understand how modern AI really works — from machine learning and neural networks to Transformers and large language models — with an animation for nearly every idea, all in Python.

Coming soon

Algorithms

Learn to think in algorithms — binary search to dynamic programming, graphs & NP-completeness — with interactive animations in Python, Java, C++ & pseudocode.

Coming soon

Android

Design, build, and publish real apps to the Google Play Store.

Coming soon

C

Understand how computers really work — memory, pointers, and performance.

Coming soon

C++

Power and control for games, systems, and competitive programming.

Coming soon

Data Structures

See how data really works — arrays to graphs — through interactive animations, with every example in Python, Java, C++ & pseudocode.

Coming soon

Flutter & Dart

Build beautiful production apps for mobile, web, and desktop from one modern codebase.

Coming soon

HTML & CSS

Build beautiful, responsive web pages from scratch — your first wins, fast.

Coming soon

Java

The backbone of Android and enterprise software. Master OOP the right way.

Coming soon

JavaScript

Bring the web to life, master the browser, and build full-stack applications with one language.

Coming soon

Node.js

Build fast server-side applications, APIs, command-line tools, and production backends with JavaScript.

Coming soon

PHP

Build secure, data-driven web applications with modern PHP, SQL, testing, and Laravel.

Coming soon

Prompt Engineering

Get the best from AI — from how a model reads your words to reasoning, structured output, RAG, tools & agents — taught with real prompts and the responses they produce.

Coming soon

Python

The world's most popular language — powering data science, AI, web, and automation.

Coming soon

SQL

Query, model, secure, and optimize relational databases from first SELECT to production analytics.

Built for active learning

Write, check, understand, repeat.

Focused checks instead of vague pass/failHints and solutions available on demandVisual traces for difficult conceptsProgress saved automatically in your browser
Practice Kotlin now