Course · Intermediate
DSA for Placements 2026
Choose the right data structure, write fast algorithms in Python and say how fast they are in Big-O. From arrays and hashing through graphs and dynamic programming to string matching, segment trees, flows and NP-completeness, for coding interviews, placement tests and university exams alike.
- Level
- Intermediate
- Units
- 26 units, 164 lessons
- Time
- About 74 hours
- Access
- Unit 1 free, the rest with Pro
- Practice
- 392 problems the judge checks
- Certificate
- Yes, anyone can verify it
What you will be able to do
- Work out the time and space an algorithm needs in Big-O, Omega and Theta, including amortized costs, and check it against a problem's limits
- Solve array and string problems with two pointers, prefix sums, sliding windows, hashing, bit masks, monotonic stacks and string matching (KMP, Z-algorithm, Rabin-Karp)
- Write recursive and backtracking solutions, use binary search on sorted data and on the answer, and apply number theory: gcd, primes, modular arithmetic and counting
- Implement and compare the classic sorts: insertion, selection, shell, merge, quick, heap, counting and radix sort
- Build linked lists, stacks, queues, trees, search trees, heaps, tries, segment trees and Fenwick trees yourself, and design structures such as an LRU cache
- Traverse graphs with BFS and DFS, order tasks, and find shortest paths, minimum spanning trees, strongly connected components, bridges and maximum flows
- Spot greedy and dynamic programming problems, from knapsack, LCS, edit distance and matrix chain to bitmask, digit, interval and tree DP
- Answer university exam questions step by step, with traces and complexity (NP-completeness and branch and bound included), and pick the right technique fast in placement tests and interviews
Before you start: The Introduction to Computer Programming course, or the same Python skills: loops, lists, dictionaries, sets, functions, simple recursion and classes.
Syllabus
26 units, in order
- Unit 1Free
Measuring algorithms
What data structures and algorithms are, how to count the work a program does, and how Big-O, Omega and Theta describe its growth in time and memory.
- Unit 2
Arrays
How arrays and Python lists sit in memory and what each operation costs, then three patterns that turn slow array code into fast code: two pointers, prefix sums and sliding windows, with the best sub-array sum on the way.
- Unit 3
Strings and hashing
What text costs to build and change, how a hash table finds a key in about one step, and the dict and set patterns that solve many problems in one pass.
- Unit 4
Recursion and backtracking
How recursive calls use the call stack, how to write and solve a recurrence for their cost, and how backtracking builds every subset, ordering and arrangement.
- Unit 5
Searching and sorting
Binary search without off-by-one bugs, binary search on the answer, the classic sorting algorithms with their costs and traces, and the master theorem.
- Unit 6
Linked lists
Build a linked list from nodes, insert and delete in it, use the classic pointer techniques, and meet doubly and circular lists.
- Unit 7
Stacks and queues
Last in first out and first in first out: matching brackets, evaluating and converting expressions, the monotonic stack, queues, deques and circular queues.
- Unit 8
Trees and binary search trees
Tree words and shapes, every traversal, rebuilding a tree from its traversals, recursive tree problems such as the lowest common ancestor, and binary search trees.
- Unit 9
Balanced trees and heaps
Search trees that stay short (AVL trees and B-trees), the binary heap stored in a list, building one in linear time, heap sort, and priority queues with Python's heapq.
- Unit 10
Graphs
Store a graph, walk it with BFS and DFS, order tasks with a topological sort, find shortest paths, and track groups with union-find.
- Unit 11
Greedy algorithms
When taking the best-looking choice each step is safe, and when it fails: interval scheduling, Huffman coding and minimum spanning trees.
- Unit 12
Dynamic programming basics
Turn slow recursion into fast tables: memoization, bottom-up tables, grid paths, the 0/1 knapsack, and subset sum.
- Unit 13
Dynamic programming on sequences and intervals
Tables over two strings and over ranges: the longest common subsequence, edit distance, the longest increasing subsequence, and matrix chain multiplication.
- Unit 14
Bits and tries
Work with the bits of a number (AND, OR, XOR and shifts, subsets as bit masks), and store words letter by letter in a trie for fast prefix searches.
- Unit 15
Number theory and counting
The maths that coding problems and exams keep using: gcd and lcm with Euclid's algorithm, primes with the sieve, prime factors and divisors, arithmetic modulo a large prime, fast modular power, inverses and matrix power, and counting with combinations, Pascal's triangle and inclusion-exclusion.
- Unit 16
Array patterns for interviews
Interview favourites that build on units 2 and 11: two pointers on sorted data for triplets and trapped water, inserting and intersecting intervals, the sweep line for meeting rooms, cyclic sort for numbers from 1 to n, prefix and suffix products, and the majority vote.
- Unit 17
Monotonic stacks and deques
Unit 7 met the monotonic stack (the next greater element) and the deque. Here they solve harder problems: spans, the largest rectangle in a histogram and in a grid of ones, sums over every sub-array's minimum, the smallest number left after removing digits, a window's maximum and minimum together, and a deque that makes a dynamic programming step fast.
- Unit 18
Heap patterns
Heaps (unit 9) behind the interview questions that ask for the top, the k-th or the next: the k-th largest with a heap or with quickselect, the most frequent items, the k closest points and the k smallest pair sums, merging k sorted streams and the smallest range across them, scheduling with cooldowns, and a sliding median with two heaps.
- Unit 19
String algorithms
Find a pattern in a text in linear time and work with palindromes: naive matching and why it is slow, Rabin-Karp with a rolling hash, the prefix function and KMP, the Z-algorithm, palindromes by expanding around the centre and with Manacher's algorithm, and counting windows for anagrams and for the shortest window that holds every letter.
- Unit 20
Advanced graphs
Beyond unit 10: shortest paths with negative edges (Bellman-Ford), with weights 0 and 1 (0-1 BFS) and in a DAG; BFS over states; strongly connected components; bridges and articulation points; Euler paths and circuits; and maximum flow with bipartite matching, as university algorithm courses teach them.
- Unit 21
Advanced trees and range queries
Answer many questions on a tree or an array fast: binary lifting for ancestors and the lowest common ancestor, flattening a tree with an Euler tour, sparse tables, segment trees with point and range updates, and Fenwick trees; then the structures university syllabi add: red-black trees, binomial and Fibonacci heaps, and skip lists.
- Unit 22
Dynamic programming patterns
More of the dynamic programming patterns that placement tests and exams use: counting the ways to make change and the unbounded knapsack, palindromic subsequences and the fewest cuts into palindromes, breaking text into dictionary words, the buy-and-sell family as a machine of states, and dynamic programming on trees.
- Unit 23
Advanced dynamic programming
Harder dynamic programming for the top of placement tests and algorithm exams: bitmask DP and the travelling salesman for small n, digit DP for counting numbers, optimal binary search trees, interval DP for cutting and merging, and the ideas that make a slow table fast.
- Unit 24
Algorithm design for university exams
The design-and-analysis topics that algorithm papers ask beyond the earlier units: Strassen's and Karatsuba's multiplication, the closest pair of points, graph colouring and Hamiltonian cycles by backtracking, branch and bound, the classes P and NP with NP-completeness and reductions, and approximation and randomised algorithms.
- Unit 25
Designing data structures
Interview design questions where you build a structure with given operation costs: amortized analysis, queues from stacks, a stack that knows its minimum, LRU and LFU caches from a dict and a linked list, a set that picks a random item in O(1), and iterators that walk a tree or a nested list one step at a time.
- Unit 26
Placement revision
Pull the whole course together for placement tests and interviews: read the limits to know the complexity you need, recognise which technique a problem wants from its signals, revise the cost of every structure and algorithm in two tables, and avoid the mistakes that cost marks and offers.
How a course works
Short lessons. Real checks.
Read a little
A short explanation with an example, written for students, not for experts.
Change it and run it
Edit the example code in the lesson and run it to see what changes.
Check, then solve
A quick check, then practice problems the judge checks on hidden tests.
Checkpoints and a final test
Pass them to finish the course and get your certificate.