DSA from Zero
Start with no coding-interview background, learn to trace an algorithm by hand, measure its cost, and finish able to reason about arrays, hashing, trees, graphs, dynamic programming and the trade-offs an interviewer expects you to name.
What you will be able to do
#- Trace an algorithm step by step and explain what changes at each step.
- Estimate time and space complexity and justify the estimate from the code.
- Choose an appropriate data structure for a stated access and update pattern.
- Recognize common patterns such as two pointers, sliding window, BFS, DFS and dynamic programming.
- Work a novel problem from restatement to tested solution while naming trade-offs.
Prerequisites
#Lessons
#What an algorithm is and how to trace one
beginner · 20 minutes · 3 exercises
Define an algorithm as a finite, ordered, unambiguous procedure.
Counting steps and Big-O intuition
beginner · 25 minutes · 3 exercises
Count the dominant operations an algorithm performs as a function of input size.
Arrays and indexing
beginner · 25 minutes · 3 exercises
Explain why array access by index is O(1).
Linear search and worst-case reasoning
beginner · 20 minutes · 3 exercises
Implement linear search and return a sentinel when the value is absent.
Binary search and halving
beginner · 30 minutes · 3 exercises
Implement binary search over a sorted array with correct bounds.
Sorting basics and why order helps
beginner · 30 minutes · 3 exercises
Trace selection sort and insertion sort on a small array.
Two pointers
intermediate · 30 minutes · 3 exercises
Use converging pointers to solve sorted pair problems in O(n).
Sliding window
intermediate · 35 minutes · 3 exercises
Maintain a window over a contiguous range while expanding and shrinking it.
Strings, hashing and frequency counting
intermediate · 30 minutes · 3 exercises
Use a hash map to count frequencies in O(n) time.
Stacks and queues
intermediate · 30 minutes · 3 exercises
Distinguish last-in-first-out from first-in-first-out behaviour.
Linked lists and pointer manipulation
intermediate · 35 minutes · 3 exercises
Traverse a singly linked list and reverse it with three pointers.
Recursion and the call stack
intermediate · 35 minutes · 3 exercises
Write a recursive function with a correct base case and recursive case.
Trees and traversal
intermediate · 35 minutes · 3 exercises
Describe a binary tree and its depth and height.
Binary search trees
intermediate · 35 minutes · 3 exercises
State the binary search tree ordering invariant.
Heaps and priority queues
intermediate · 35 minutes · 3 exercises
Describe the heap property and the array representation of a heap.
Graphs, BFS and DFS
intermediate · 40 minutes · 3 exercises
Represent a graph with an adjacency list and explain the trade-off against a matrix.
Topological sort and dependencies
intermediate · 35 minutes · 3 exercises
Explain what a directed acyclic graph is and why order matters.
Shortest paths and Dijkstra
intermediate · 40 minutes · 3 exercises
Distinguish unweighted shortest paths from weighted ones.
Dynamic programming foundations
intermediate · 40 minutes · 3 exercises
Identify overlapping subproblems and optimal substructure.
DP on grids and sequences
intermediate · 40 minutes · 3 exercises
Define a two-dimensional DP state for grid problems.
Greedy algorithms and intervals
intermediate · 35 minutes · 3 exercises
Explain when a locally best choice leads to a globally best answer.
Backtracking and search
intermediate · 40 minutes · 3 exercises
Model a problem as a decision tree of choices.
Bit manipulation
intermediate · 35 minutes · 3 exercises
Read and write individual bits with AND, OR, XOR and shifts.
Reasoning through a novel problem end to end
advanced · 45 minutes · 3 exercises
Apply a repeatable method from restatement to tested solution.
Study journeys
#Skip-ahead journeys never remove a requirement. The prerequisite graph always reports the full chain; a skip-ahead course only marks where an assessment may substitute for study.
Frontend interview candidate
Developer preparing for frontend interviews
Combine language fluency, DSA reasoning and structured communication under interview constraints.
- JavaScript Foundationsskip by assessment
- DSA from Zeroyou are here
- Interview Communication
Next in this journey: Interview Communication