Algobench
DSA
Backend
Frontend
Practice
Glossary
ID
EN
Start learning
DSA
Backend
Frontend
Practice
Glossary
DSA
Data Structures & Algorithms
The foundation for backend and frontend work: cost, data structures and algorithm patterns.
Module 0
Thinking in cost
0.1
Algorithms, steps and input size
0.2
Big-O
0.3
Best, average and worst case
0.4
Space complexity
0.5
Hidden costs
Module 1
Linear data structures
1.1
Arrays and dynamic arrays
1.2
Linked lists
1.3
Arrays vs linked lists in practice
1.4
Stack
1.5
Queue and circular queue
1.6
Deque
Module 2
Hashing
2.1
Hash functions
2.2
Hash maps and collisions
2.3
Load factor and rehashing
2.4
Hash sets
Module 3
Recursion
3.1
Recursion and the call stack
3.2
Base cases and stack overflow
3.3
Recursion vs iteration
Module 4
Searching and sorting
4.1
Linear search vs binary search
4.2
Binary search on the answer
4.3
Bubble, selection and insertion sort
4.4
Merge sort
4.5
Quick sort
4.6
Sort stability
Module 5
Algorithm patterns
5.1
Two pointers
5.2
Sliding window
5.3
Prefix sums
5.4
Greedy
Module 6
Trees
6.1
Trees and traversal
6.2
Binary search trees
6.3
Unbalanced trees
6.4
B-trees
6.5
Tries
Module 7
Heaps
7.1
Heaps and priority queues
7.2
Top-K and heap sort
Module 8
Graphs
8.1
Representing graphs
8.2
BFS
8.3
DFS
8.4
Shortest path (Dijkstra)
8.5
Topological sort
8.6
Union-find
Module 9
Dynamic programming
9.1
Memoization
9.2
Tabulation
9.3
Knapsack, LCS and coin change
Module 10
Correctness and reviewing AI code
10.1
Loop invariants
10.2
Edge cases
10.3
Floating point
10.4
Practice: find the bug in AI code