๐ŸŒฒ
๐ŸŒฒ Course ยท DS-201

Trees, Heaps & Tries

The next data structures after the basics: trees that keep data sorted, heaps that always hand you the most important item, and tries that power autocomplete. These are the structures behind fast search, schedulers and real systems - and they're more approachable than their reputation.

๐ŸŽ“ Intermediateโฑ ~3.5 hours๐Ÿ“š 6 sessionsโœ… Free ยท self-paced
Reset progress
Your progress
Not started

About this course

The next data structures after the basics: trees that keep data sorted, heaps that always hand you the most important item, and tries that power autocomplete. These are the structures behind fast search, schedulers and real systems - and they're more approachable than their reputation.

Prerequisites: Data Structures & Algorithms (DS-101) is the ideal foundation - this is its direct sequel. Comfort with Python and recursion helps.

What you'll be able to do

Syllabus

6 sessions, in order. Each has tables, charts, a worked example and hands-on tools.

#Session
1Beyond Lists & Dictionaries
Lists and dictionaries take you a long way โ€” but some problems need more. When you need data kept sorted, or tโ€ฆ
โฑ 8 min
2Binary Search Trees
A binary search tree keeps values sorted with one simple rule โ€” smaller left, larger right โ€” which makes searcโ€ฆ
โฑ 9 min
3Visiting Every Node: Traversals
Once you have a tree, you often need to visit every node โ€” but in what order? The four traversals (in-order, pโ€ฆ
โฑ 8 min
4Heaps & Priority Queues
A heap is the structure that always hands you the most important item next โ€” instantly. It powers task schedulโ€ฆ
โฑ 9 min
5Tries: The Autocomplete Structure
How does a search box suggest completions the instant you type? Often, a trie โ€” a tree that stores words by thโ€ฆ
โฑ 8 min
6Choosing the Right Structure
You now know several structures โ€” the real skill is picking the right one for a problem. This final session isโ€ฆ
โฑ 8 min

Coursework

More in Tech & Digital Skills

๐Ÿš€DEV-101

Code ยท Market ยท Design

Build employable skills โ€” web development, SEO/marketing and design, the realistic way.

Introductory๐Ÿ“š 8 sessionsโฑ ~3.5 hours
Start course โ†’
๐Ÿค–AIP-101

AI & Productivity

Use AI like a pro โ€” what to automate, prompt craft, and getting real work done faster.

Introductory๐Ÿ“š 8 sessionsโฑ ~2.5 hours
Start course โ†’
โš™๏ธNOC-101

No-Code & Automation

Build apps and automate work without writing code โ€” the modern maker's toolkit.

Introductory๐Ÿ“š 8 sessionsโฑ ~3 hours
Start course โ†’
๐Ÿ“ŠDAT-101

Data & Analytics

Think clearly with numbers โ€” spreadsheets, reading charts, spotting bad stats and deciding with data.

Introductory๐Ÿ“š 8 sessionsโฑ ~3 hours
Start course โ†’
๐Ÿ”’SEC-101

Cybersecurity & Privacy

Protect yourself online โ€” passwords, phishing, privacy and securing your devices.

Introductory๐Ÿ“š 8 sessionsโฑ ~2.5 hours
Start course โ†’
โ‚ฟCRY-101

Crypto & Web3

Start safely โ€” wallets, security, DeFi, and earning without getting rekt.

Introductory๐Ÿ“š 8 sessionsโฑ ~2.5 hours
Start course โ†’
๐ŸงฑSTK-101

Building with the Larz Stack

Ship real software with zero third-party dependencies โ€” a tour of the 60+ pure-Python Larz libraries for money, data, security, web and AI, and how they click together with the Larz framework.

Intermediate๐Ÿ“š 8 sessionsโฑ ~3.5 hours
Start course โ†’
๐Ÿ—๏ธLARZ-601

Build a SaaS with Larz

Go end to end: build and ship a real money-native SaaS with the Larz framework - accounts and auth, plans and subscriptions, an admin dashboard, background jobs and email, and a production deploy.

Intermediate๐Ÿ“š 6 sessionsโฑ ~3.5 hours
Start course โ†’
โ›“๏ธCHAIN-101

Understanding & Building on LarzChain

Learn how a blockchain really works by studying a real one you can read: LarzChain, a fair-launch, proof-of-work, zero-dependency cryptocurrency. Blocks, mining, wallets, its smart-contract VM, and building on it responsibly.

Introductory๐Ÿ“š 6 sessionsโฑ ~3 hours
Start course โ†’
๐Ÿ—„๏ธLARZ-701

Data & Storage with the Larz Stack

Persist and query data without a database server - and safely. A deep dive on the stack's data family: the crash-safe embedded DB, injection-safe queries, migrations, caching, and every serialization format.

Intermediate๐Ÿ“š 4 sessionsโฑ ~3 hours
Start course โ†’
โŒจ๏ธLARZ-801

Build CLI Tools with Larz

Command-line tools are the fastest way to automate your work and share utilities. Build beautiful, professional CLIs with the stack: a function becomes a command, with rich output, prompts and progress.

Intermediate๐Ÿ“š 5 sessionsโฑ ~2.5 hours
Start course โ†’
๐Ÿ”’SEC-101

Security & Identity with the Larz Stack

Security is where mistakes are most costly - so it pays to use correct, standard tools. Hashing and encryption, secrets management, two-factor auth and decentralised identity, done right with the stack's RFC-verified libraries.

Intermediate๐Ÿ“š 5 sessionsโฑ ~3 hours
Start course โ†’
๐Ÿ‘ฉโ€๐Ÿ’ปCODE-101

Learn to Code (from Zero)

Coding is one of the most valuable, empowering skills you can learn - and anyone can start. What programming really is, how programs think, writing your first one, how to learn effectively, and where it can take you.

Introductory๐Ÿ“š 5 sessionsโฑ ~2.5 hours
Start course โ†’
๐ŸPY-101

Python Fundamentals (Hands-On)

Actually learn Python by writing it. The core building blocks - variables, decisions, loops, functions and collections - explained clearly and practised, then combined into a real little program.

Introductory๐Ÿ“š 6 sessionsโฑ ~3 hours
Start course โ†’
๐ŸงฎDS-101

Data Structures & Algorithms

The ideas that separate a hobbyist from a real programmer: choosing the right way to store data, and knowing how fast your code is. Lists, dictionaries, stacks, queues, trees, graphs - and Big-O made simple.

Intermediate๐Ÿ“š 6 sessionsโฑ ~3 hours
Start course โ†’
๐ŸPY-201

Intermediate Python

You can write basic Python - now write it well. Organise code into functions and modules, work with files, handle errors gracefully, meet classes and objects, and learn the clean idioms that make Python a joy. The bridge from beginner to capable.

Intermediate๐Ÿ“š 6 sessionsโฑ ~3.5 hours
Start course โ†’
๐Ÿ–ฅ๏ธCS-101

How Computers Work

What's actually going on inside the machine - from a single on/off switch to a running app. Bits, how data is stored, what a CPU does, how your code becomes something the machine runs, and how computers talk to each other. No jargon, no maths degree required.

Beginner๐Ÿ“š 6 sessionsโฑ ~3 hours
Start course โ†’
๐Ÿ›DEBUG-101

Debugging & Problem-Solving

The skill nobody teaches but everybody needs: finding and fixing bugs without panic, reading error messages, isolating problems, and thinking through hard things methodically. This is what actually separates people who can code from people who can't - and it's learnable.

Beginner๐Ÿ“š 6 sessionsโฑ ~3 hours
Start course โ†’
๐ŸŒฟGIT-101

Version Control with Git

The tool every developer uses every day, and the one tutorials skip. Git remembers every version of your work, lets you experiment fearlessly, undo mistakes, and collaborate with others without chaos. Learn it early and the whole world of real software - and GitHub - opens up.

Beginner๐Ÿ“š 6 sessionsโฑ ~3 hours
Start course โ†’
๐Ÿš€BUILD-101

Build Your First Real Project

The moment it all comes together: take everything you've learned - Python, debugging, Git, data - and build and ship a real project you're proud of. This is what turns 'someone learning to code' into 'a developer', and it's the bridge to building genuinely valuable software.

Intermediate๐Ÿ“š 6 sessionsโฑ ~4 hours
Start course โ†’
๐ŸŒWEB-101

Web Development Basics

Almost all the software people find valuable lives on the web. This is how it works and how you build it: the request-response dance, HTML and CSS, how servers generate pages, handling user input safely, and APIs. The bridge from 'I can code' to 'I can build web apps'.

Intermediate๐Ÿ“š 6 sessionsโฑ ~3.5 hours
Start course โ†’
๐ŸงชTEST-101

Testing & Quality

The habit that separates hobby code from professional, trustworthy software: proving your code works with tests, and caring about quality. Testing gives you the confidence to change and grow a project without fear - the skill that lets software get big without falling apart.

Intermediate๐Ÿ“š 5 sessionsโฑ ~3 hours
Start course โ†’
๐ŸšขDEPLOY-101

Deploying & Running Your App

The last mile between 'it works on my machine' and 'real people are using it': getting your app online, configuring it for the real world, and keeping it healthy once it's running. This is what turns a project into a living service - and it's more approachable than it sounds.

Intermediate๐Ÿ“š 5 sessionsโฑ ~3 hours
Start course โ†’
๐Ÿ—ƒ๏ธDATA-201

Working with Data

Real apps are mostly about data: storing it so it lasts, asking questions of it, structuring it well, and handling lots of it. This is the practical craft of application data - files vs databases, querying, modelling, and scale - the layer beneath almost every valuable piece of software.

Intermediate๐Ÿ“š 6 sessionsโฑ ~3.5 hours
Start course โ†’
๐Ÿ›๏ธARCH-101

Software Design & Architecture

The difference between code that works and code that lasts. As programs grow, how you structure them decides whether they stay a joy to change or turn into a tangle nobody dares touch. This is software design - separation of concerns, the right patterns, and building for change - the craft of the senior developer.

Intermediate๐Ÿ“š 6 sessionsโฑ ~3.5 hours
Start course โ†’
๐Ÿš€DEV-101

Becoming a Developer

You've learned to build, test, deploy and design real software. This is how you turn that into a life: a portfolio that proves you can build, contributing to open source, learning continuously, getting hired, and growing in the craft. The capstone that turns skills into a career.

All levels๐Ÿ“š 6 sessionsโฑ ~3 hours
Start course โ†’
๐ŸงฌPL-101

How Programming Languages Work

One of the most magical-seeming topics in software, demystified: how does a language turn text you type into a program that runs? You'll see the whole pipeline - tokenizing, parsing, interpreting - and even how to design your own small language. Deep, empowering, and more approachable than it sounds.

Advanced๐Ÿ“š 6 sessionsโฑ ~4 hours
Start course โ†’
โ† All 24 courses