LEVEL 3 · JAVASCRIPT
Course Core
Algorithms and data structures
Measure code with Big O, build the classic data structures in JavaScript, learn the algorithms every engineer uses, and solve problems with named patterns instead of guesswork.
0 of 19 lessons done
When you finish, you can
- State the time and space complexity of a piece of code and justify it
- Implement stacks, queues, linked lists, hash maps, trees, heaps, graphs and tries
- Implement and compare searching and sorting algorithms
- Solve problems with recursion, divide and conquer, BFS, DFS, greedy choices, backtracking and dynamic programming
- Recognise when a problem fits frequency counting, two pointers, a sliding window or binary search
You build: Your own tested library of data structures and algorithms
MODULE 1
Measuring code
MODULE 2
Data structures
- 2Arrays and strings under the hoodLearn what array and string operations really cost, from indexing to shift and string building, then solve reverse, palindrome, anagram and rotate with tests.50 min
- 3Hash maps and setsBuild a hash table from scratch with hashing, buckets, collisions and resizing, then use Map and Set for lookups, counting, dedupe and two-sum.55 min
- 4Stacks and queuesBuild stacks, queues, a ring buffer and a deque in JavaScript, then use them for undo and redo, bracket checking and a retrying job queue.55 min
- 5Linked lists and the LRU cacheBuild singly and doubly linked lists in JavaScript, reverse them, detect cycles, and use one to build an O(1) LRU cache for product lookups.55 min
- 6Trees and binary search treesTurn flat category rows into a tree, walk it four ways, then build, test and balance a binary search tree of orders, with the cost of every operation.55 min
- 7Heaps and priority queuesBuild a binary heap on a plain array, use it as a priority job queue, then sort with it, find the top-k products and merge sorted order lists.50 min
- 8Graphs and topological sortModel packages, roads between cities and followers as graphs, store them as adjacency lists, and compute a safe install order with topological sort.55 min
- 9Tries and autocompleteBuild a prefix tree for product search: autocomplete as the user types, count matches per prefix, delete safely, and weigh the memory it costs.45 min
MODULE 3
Algorithms
- 10Linear and binary searchFind an order among a million by scanning and by halving, write binary search three ways, catch its classic bugs, and use lower and upper bounds for ranges.50 min
- 11Sorting algorithmsBuild bubble, selection, insertion, merge and quick sort, count their comparisons, then sort real orders by several keys with a stable, tested sort.55 min
- 12Divide and conquerSplit problems into halves, solve the halves and combine: find delivery-time percentiles with quickselect, compute powers fast, and predict costs with recursion trees.55 min
- 13Graph searchRoute parcels between delivery hubs with breadth-first search, walk a warehouse maze, find cut-off areas and circular transfers with depth-first search, and meet Dijkstra.55 min
- 14Greedy algorithmsGive change in naira notes, book meeting rooms and load a van by always taking the best-looking choice, then prove when that works and catch it failing with tests.50 min
MODULE 4
Problem-solving patterns
- 15The frequency counter patternReplace nested loops with one counting pass: check anagram usernames, reconcile lists, find the first unmatched entry and the majority, in O(n).45 min
- 16The two pointers patternWalk sorted data from both ends or at two speeds: pair refunds, dedupe order ids in place, size a tank, and find loops and midpoints with O(1) extra space.50 min
- 17Sliding window and prefix sumsFind the best 7 days of revenue, the longest on-time streak and any range total without re-adding numbers, using sliding windows and prefix sums.55 min
- 18Binary search on the answerUse binary search beyond sorted arrays: find the smallest truck capacity, the first failing build and items in rotated lists by halving a range of answers.55 min
- 19Pattern practiceSolve eleven unlabelled problems by first naming the pattern and why, then coding, testing and analysing, plus two interview walkthroughs.60 min
Course checkpoint
Prove you can move on. The checkpoint picks 20 questions at random from every lesson in this course. Get 16 right to pass. Your result is saved in this browser only.