Skip to article content
FrontendXLearning path

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.

beginner · 24 lessons · 72 exercises · about 800 minutes

  • Predict
  • Explain
  • Implement
  • Debug
  • Interview

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

#
  1. What an algorithm is and how to trace one

    beginner · 20 minutes · 3 exercises

    Define an algorithm as a finite, ordered, unambiguous procedure.

  2. Counting steps and Big-O intuition

    beginner · 25 minutes · 3 exercises

    Count the dominant operations an algorithm performs as a function of input size.

  3. Arrays and indexing

    beginner · 25 minutes · 3 exercises

    Explain why array access by index is O(1).

  4. Linear search and worst-case reasoning

    beginner · 20 minutes · 3 exercises

    Implement linear search and return a sentinel when the value is absent.

  5. Binary search and halving

    beginner · 30 minutes · 3 exercises

    Implement binary search over a sorted array with correct bounds.

  6. Sorting basics and why order helps

    beginner · 30 minutes · 3 exercises

    Trace selection sort and insertion sort on a small array.

  7. Two pointers

    intermediate · 30 minutes · 3 exercises

    Use converging pointers to solve sorted pair problems in O(n).

  8. Sliding window

    intermediate · 35 minutes · 3 exercises

    Maintain a window over a contiguous range while expanding and shrinking it.

  9. Strings, hashing and frequency counting

    intermediate · 30 minutes · 3 exercises

    Use a hash map to count frequencies in O(n) time.

  10. Stacks and queues

    intermediate · 30 minutes · 3 exercises

    Distinguish last-in-first-out from first-in-first-out behaviour.

  11. Linked lists and pointer manipulation

    intermediate · 35 minutes · 3 exercises

    Traverse a singly linked list and reverse it with three pointers.

  12. Recursion and the call stack

    intermediate · 35 minutes · 3 exercises

    Write a recursive function with a correct base case and recursive case.

  13. Trees and traversal

    intermediate · 35 minutes · 3 exercises

    Describe a binary tree and its depth and height.

  14. Binary search trees

    intermediate · 35 minutes · 3 exercises

    State the binary search tree ordering invariant.

  15. Heaps and priority queues

    intermediate · 35 minutes · 3 exercises

    Describe the heap property and the array representation of a heap.

  16. Graphs, BFS and DFS

    intermediate · 40 minutes · 3 exercises

    Represent a graph with an adjacency list and explain the trade-off against a matrix.

  17. Topological sort and dependencies

    intermediate · 35 minutes · 3 exercises

    Explain what a directed acyclic graph is and why order matters.

  18. Shortest paths and Dijkstra

    intermediate · 40 minutes · 3 exercises

    Distinguish unweighted shortest paths from weighted ones.

  19. Dynamic programming foundations

    intermediate · 40 minutes · 3 exercises

    Identify overlapping subproblems and optimal substructure.

  20. DP on grids and sequences

    intermediate · 40 minutes · 3 exercises

    Define a two-dimensional DP state for grid problems.

  21. Greedy algorithms and intervals

    intermediate · 35 minutes · 3 exercises

    Explain when a locally best choice leads to a globally best answer.

  22. Backtracking and search

    intermediate · 40 minutes · 3 exercises

    Model a problem as a decision tree of choices.

  23. Bit manipulation

    intermediate · 35 minutes · 3 exercises

    Read and write individual bits with AND, OR, XOR and shifts.

  24. 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.

© 2026 FrontendX. All rights reserved.