Better Dev

Everything you need to go from zero to confident in mathematics and data structures & algorithms. Built for self-learners who started late and want to catch up fast.

Math Learning Roadmap

Follow this order. Each topic builds on the one before it. Don't skip ahead -- the foundations make everything else click.

1
Pre-Algebra
Numbers, BODMAS, fractions, decimals, ratios
2
Algebra
Variables, equations, functions, polynomials
3
Sequences & Series
Arithmetic & geometric progressions, sum formulas
4
Geometry
Shapes, trig, coordinate geometry
5
Binary & Number Systems
Binary, hex, bitwise ops -- CS essential
6
Discrete Math
Logic, sets, proofs, Big-O, graph theory
7
Calculus
Limits, derivatives, integrals
8
Linear Algebra
Vectors, matrices, transformations
9
Probability & Statistics
Probability, Bayes, distributions

Mathematics

Start from the very basics and work your way up to the maths every computer scientist needs. Every topic has explanations, worked examples, formulas, and quizzes.

πŸ”’

Pre-Algebra

Numbers, BODMAS, fractions, decimals, percentages, ratios, exponents, and negative numbers.

Start Here
πŸ“

Algebra

Variables, equations, functions, polynomials, quadratics, logarithms, and exponent rules.

Essential
πŸ“Š

Sequences & Series

Arithmetic and geometric progressions, sum formulas, n(n+1)/2, and why nested loops are O(n²).

Essential
πŸ“

Geometry

Shapes, angles, area, volume, trigonometry, coordinate geometry, and transformations.

Essential
πŸ“ˆ

Calculus

Limits, derivatives, integrals, and their applications in CS and machine learning.

Intermediate
🧠

Discrete Math

Logic, sets, proofs, counting, graph theory, Big-O notation, and recurrence relations.

CS Core
πŸ”€

Linear Algebra

Vectors, matrices, eigenvalues, transformations, and applications in ML and graphics.

CS Core
🎲

Probability & Statistics

Probability rules, Bayes' theorem, distributions, statistics, and CS applications.

CS Core
01

Binary & Number Systems

Binary, hex, octal, bitwise operations (AND, OR, XOR), bit manipulation, how files and data are stored as bytes, and C++ bitwise programming.

Essential

Data Structures & Algorithms

Master every data structure and algorithm you need for LeetCode and technical interviews, with code in Python and JavaScript.

🧱

DSA Foundations

Everything explained from zero: what data structures are, time complexity with the math, every core structure, algorithms, and a problem-solving framework.

Start Here
πŸ‹οΈ

The PythonWithSean 650

650 curated LeetCode problems organized by topic. Complete this list and you'll be ready for any interview.

Essential
πŸ“Š

Arrays & Strings

Array operations, two pointers, sliding window, prefix sum, and string manipulation.

Start Here
πŸ“š

Stacks & Queues

LIFO and FIFO structures, implementations, deques, and monotonic stack patterns.

Fundamental
πŸ—‚οΈ

Hash Maps & Sets

Hash map internals, frequency counting, Two Sum, Group Anagrams, and building from scratch.

Fundamental
πŸ”—

Linked Lists

Singly and doubly linked lists, fast/slow pointers, reversal, and cycle detection.

Core
🌳

Trees & BST

Binary search trees, all traversals, DFS, BFS, and balanced tree concepts.

Core
πŸ•ΈοΈ

Graphs

BFS, DFS, Dijkstra's, topological sort, union-find, and cycle detection.

Intermediate
πŸ”„

Sorting & Searching

All sorting algorithms, binary search variants, and built-in sorting pitfalls.

Core
🧩

LeetCode Patterns

Two pointers, sliding window, backtracking, prefix sum, greedy, and the pattern cheat sheet.

Key Resource
πŸ’‘

Dynamic Programming

Top-down vs bottom-up, 1D and 2D DP, knapsack, LCS, and the 5-step framework.

Advanced
⚑

Advanced Topics

Heaps, tries, union-find, segment trees, bit manipulation, and math for interviews.

Advanced

Languages & Systems

Learn a systems-level programming language in depth and understand how operating systems actually work.

βš™οΈ

C++

Data types, pointers (single through triple indirection), RAII, smart pointers, vectors, strings, STL containers, and modern C++ features.

Essential
🐹

Go (Golang)

Go fundamentals, structs, interfaces, goroutines & channels, building HTTP backends, CLIs, testing, concurrency patterns, and Go for DSA.

Essential
🟨

JavaScript Deep Dive

V8 engine, execution context, closures, prototypes, the event loop, Proxy/Reflect, ES6+ features, modules, and memory management.

Essential
πŸ”·

TypeScript

Generics, conditional types, mapped types, utility types, infer, keyof, decorators, declare module, namespaces, and tsconfig deep dive.

Essential
🟒

Node.js Internals

V8 + libuv architecture, event loop phases, streams, buffers, child_process, worker threads, cluster, and the module system.

Essential
πŸ–₯️

Operating Systems

Processes, syscalls, scheduling, threads, locks, virtual memory, paging, file systems, and security. Companion to the free OSTEP textbook.

Essential
🐧

Learn Linux

What Linux is, Unix vs Linux, the kernel and shell, directory structure, apt package management, Bash scripting, .bashrc, ANSI terminal codes, and more.

Essential
πŸ”€

Master Git

Git internals, branches as pointers, the DAG, rebase, interactive rebase, cherry-pick, squash, reset vs revert, reflog, GitHub CLI, GitLab CLI, and advanced workflows.

Essential
🌐

Networking

OSI model, TCP/IP, DNS, HTTP/HTTPS, TLS handshakes, WebSockets, REST vs GraphQL vs gRPC, ports, and network debugging tools.

Essential
☁️

Cloud & Infrastructure

AWS/GCP/Azure, compute & storage, serverless, CI/CD, Terraform, load balancers, CDNs, managed databases, and avoiding bill shock.

Intermediate
🐳

Docker & Compose

Containers from scratch -- images, Dockerfiles, volumes, networking, Docker Compose, multi-container apps, and production best practices.

Essential
☸️

Kubernetes

Container orchestration -- Pods, Deployments, Services, scaling, self-healing, YAML configs, kubectl, and when to use K8s vs Docker Compose.

Intermediate
πŸ“¨

Queues & Pub/Sub

Message queues, Pub/Sub patterns, topics, fan-out, RabbitMQ, Apache Kafka, AWS SQS/SNS, consumer groups, and event-driven architecture.

Intermediate
🏠

VPS & Self-Hosting

Set up a VPS from scratch, SSH keys, firewalls, reverse proxies, SSL, Docker deployments, Coolify, and self-hosted tools -- all on a $4/month server.

Essential

JS/TS Ecosystem

The JavaScript and TypeScript ecosystem explained: tooling, testing, and building real projects.

πŸ”§

Tooling & Bundlers

npm/yarn/pnpm, package.json, Webpack, Vite, esbuild, Babel, SWC, module resolution, linting, monorepos, and npm audit.

Essential
πŸ§ͺ

Testing

Vitest, Jest, mocking, spies, async testing, HTTP API testing, snapshots, coverage, TDD, and Playwright for E2E.

Essential
πŸ—οΈ

Building with TS

Build CLIs, TUIs with Ink, HTTP APIs (Express/Fastify/Hono), an AI git commit tool, SDKs, npm publishing, and Docker for TS.

Intermediate

Free Resources

The best free resources to supplement your learning. Use these alongside this site.

πŸŽ“

Professor Leonard

Full-length university lectures on Pre-Algebra through Calculus III. The best maths teacher on YouTube -- explains everything from fundamentals with patience and clarity.

Highly Recommended
πŸ“–

Khan Academy

Free video lessons and practice for every maths topic from arithmetic to linear algebra. Perfect for filling gaps.

🎬

3Blue1Brown

Beautiful visual explanations of linear algebra, calculus, and more. Watch Essence of Linear Algebra and Essence of Calculus.

πŸ’»

NeetCode

Curated LeetCode roadmap with video explanations for every problem. The best free DSA resource.

πŸ†

LeetCode

Practice coding problems sorted by topic, difficulty, and company.

πŸ‘οΈ

VisualGo

Animated visualizations of data structures and algorithms. See exactly how they work step by step.

Know Your Brain

Understanding how you think changes how you learn. If your brain demands axioms over vibes, this is for you.

🧠

Sean's Brain

A manual for the systems-thinking brain -- your cognitive profile, why you overthink, two learning modes, and how to use precision as a superpower.

Read This

LeetCode Strategy