Learn

Learn to code in Python

Never written code before? Start here. Each lesson is short, and you can run and edit every example right on the page — no setup, nothing to install. When you're ready, these lead straight into AlgoArena's practice problems.

Interactive lessons
  1. 1

    Your First Program

    Write and run your very first lines of Python — right here on the page.

    5 min · Python

  2. 2

    Variables

    Store values in named boxes called variables, then reuse them.

    6 min · Python

  3. 3

    Numbers & Math

    Use Python as a calculator — and do math with your variables.

    6 min · Python

  4. 4

    Working with Text

    Join text together, measure it, and change its case.

    7 min · Python

  5. 5

    Lists

    Hold many values under one name, and reach for the one you want.

    7 min · Python

  6. 6

    Making Decisions

    Run different code depending on whether something is true.

    8 min · Python

  7. 7

    Loops

    Repeat work without writing it out a hundred times.

    8 min · Python

  8. 8

    Functions

    Package code under a name so you can reuse it.

    9 min · Python

Guides from the archive
Getting Started8 min

Why Every Developer Should Try Competitive Programming

Explore the surprising benefits of competitive programming: faster thinking, better code, and skills that transfer directly to your day job.

Computer Science11 min

Understanding Time Complexity: Big O Notation Explained

A beginner-friendly guide to analyzing algorithm efficiency and understanding Big O, Omega, and Theta notation.

Getting Started10 min

What is Competitive Programming? A Complete Beginner's Guide

Discover what competitive programming is, why it's valuable for your career, and how to get started on your journey to becoming a better problem solver.

Interview Prep10 min

10 Essential Tips for LeetCode-Style Technical Interviews

Practical advice from experienced developers on how to approach coding interviews, manage time, and communicate effectively.

Binary Search12 min

Master Binary Search: From Basics to Advanced Patterns

A comprehensive guide to binary search algorithms, covering standard search, rotated arrays, and finding boundaries.

Trees16 min

Complete Guide to Tree Algorithms: Traversals, Construction, and More

Comprehensive coverage of tree data structures, including DFS, BFS, tree construction, and common interview problems.

Interview Prep12 min

15 Tips for Technical Interviews That Actually Work

Practical, battle-tested advice for acing coding interviews. From problem-solving strategies to communication tips that impress interviewers.

Graphs14 min

Graph Traversal: Deep Dive into DFS and BFS

Explore depth-first search and breadth-first search algorithms with visual examples and implementation details.

Interview Prep9 min

10 Common Technical Interview Mistakes (And How to Avoid Them)

Learn from others' failures. These are the most common mistakes candidates make in coding interviews and exactly how to avoid them.

System Design18 min

System Design Basics: Building Scalable Applications

Introduction to system design principles, covering load balancing, caching, databases, and distributed systems fundamentals.

Computer Science12 min

Heaps and Priority Queues: An Interview Playbook

When to reach for a heap, the classic patterns (top K, merging streams, scheduling), and Python/Java/C++ mental models.

Dynamic Programming15 min

Dynamic Programming for Beginners: Memoization vs Tabulation

Understand the fundamentals of dynamic programming with clear examples and when to use memoization vs bottom-up approaches.

Interview Prep15 min

How to Prepare for FAANG Technical Interviews in 2026

A strategic roadmap for landing your dream job at top tech companies. Covers what to study, how to practice, and what interviewers really look for.

Arrays13 min

Master the Sliding Window Technique: Pattern Recognition Guide

Learn how to identify and solve sliding window problems efficiently. Includes common patterns and practice problems.

Arrays8 min

Two Sum Problem: Multiple Approaches Explained

Learn how to solve the classic Two Sum problem using brute force, hash maps, and two-pointer techniques. Perfect for interview prep.

Backtracking14 min

Backtracking Algorithms: When and How to Use Them

Deep dive into backtracking algorithms with examples including permutations, combinations, and constraint satisfaction problems.

Already comfortable writing code? Jump straight to practice problems.