DSA Curriculum — 29 Topics · 6 Categories

Master Data Structures
& Algorithms.

Live canvas animations, optimized Python code, Big-O for every topic, and 47+ curated interview problems tagged for FAANG and startups. The most visual DSA reference — free.

Live Canvas animations Python implementations Big-O every topic FAANG + Startup tagged
29TopicsStructures + Algorithms
6CategoriesLinear to Advanced
47+ProblemsFAANG & Startup tagged
LiveAnimationsCanvas 2D, 60fps
O(?)ComplexityEvery topic analyzed
Foundations

What exactly is DSA?

The two concepts every strong engineer understands cold.

Data Structure
A container that stores and organizes data — like a list of numbers, a stack of plates, or a tree of folders. The right structure makes operations fast; the wrong one makes them sluggish.
Algorithm
A step-by-step procedure to solve a problem. Like a recipe — precise, repeatable, and measurable in time and memory cost. The same problem can have wildly different algorithms.
Time Complexity
How runtime grows as input grows. The gap between O(n) and O(n²) is the gap between "scales fine" and "unusable in production." Big-O is the language engineers use to discuss this.
Space Complexity
How much memory an algorithm consumes. Critical in constrained environments — mobile apps, embedded systems, or any service handling millions of requests per second.
Strong DSA skills mean better code, faster debugging, and the ability to reason about performance before problems appear in production — not just on whiteboards.
Quick Reference

Big-O Complexity at a Glance

From fastest to slowest — how algorithms scale with input size n.

O(1)Constant
O(log n)Logarithmic
O(n)Linear
O(n log n)Linearithmic
O(n²)Quadratic
O(2ⁿ)Exponential
O(n!)Factorial
◀ Faster Slower ▶
Reference Table

Sorting Algorithm Complexities

Best, average, worst case — and space usage side by side.

Algorithm Best Case Average Case Worst Case Space Stable?
Bubble SortO(n)O(n²)O(n²)O(1)✓ Yes
Selection SortO(n²)O(n²)O(n²)O(1)✗ No
Insertion SortO(n)O(n²)O(n²)O(1)✓ Yes
Merge SortO(n log n)O(n log n)O(n log n)O(n)✓ Yes
Quick SortO(n log n)O(n log n)O(n²)O(log n)✗ No
Heap SortO(n log n)O(n log n)O(n log n)O(1)✗ No
Reference Table

Data Structure Operation Complexities

Average and worst case for core operations — at a glance.

Data StructureAccessSearchInsertDeleteSpace
ArrayO(1)O(n)O(n)O(n)O(n)
Linked ListO(n)O(n)O(1)O(1)O(n)
StackO(n)O(n)O(1)O(1)O(n)
QueueO(n)O(n)O(1)O(1)O(n)
Hash TableN/AO(1)*O(1)*O(1)*O(n)
BST (balanced)O(log n)O(log n)O(log n)O(log n)O(n)
HeapO(1)**O(n)O(log n)O(log n)O(n)
Graph (adj list)N/AO(V+E)O(1)O(V+E)O(V+E)
* Average case. Worst case O(n) with collisions.  ** Peek at min/max only.
Interview Strategy

What to focus on — FAANG vs Startup

Not all DSA is weighted equally. Know your target before you prep.

FAANG / PBC TRACK
Go deep on hard problems
Hard Graph problems — DFS, BFS, topological sort
Dynamic Programming patterns — knapsack, LCS, LIS
Trees — LCA, serialization, path problems
Heaps — sliding window max, top-K problems
Bit manipulation — common tricks under pressure
STARTUP TRACK
Nail the fundamentals fast
Arrays & Strings — sliding window, two pointer
Hash Tables — grouping, counting, O(1) lookup
Sorting — know when to use which algorithm
Binary Search — on arrays and on the answer
Recursion + basic DP — Fibonacci, coin change
Ready to practice?
47+ DSA interview questions — tagged for FAANG and startups, difficulty-rated, progress tracked in your browser.
Practice DSA →
Real World

DSA powers everything you use

Every system you interact with daily relies on the same concepts covered here.

Graphs + Hashing
Search Engines
PageRank + hash tables index billions of pages for millisecond results.
Dijkstra's
GPS Navigation
Finds shortest paths between millions of road nodes in real time.
Trees + Hashing
E-commerce
Power product search, inventory systems, and recommendation engines.
Number Theory
Cryptography
RSA and elliptic curve algorithms protect every online transaction.
Graph Traversal
Social Networks
BFS/DFS powers friend suggestions and connection analysis at scale.
B+ Trees
Databases
The index structure behind MySQL, PostgreSQL, and MongoDB queries.
Full Curriculum

All 29 DSA Topics

Start from the top and work down, or jump to what you need.