top of page

Trees & Graphs

26 problems · Easy to Hard · Trees, graphs, and traversal

Trees and graphs are the most algorithmically rich topic in technical interviews, spanning traversal, shortest path, topological ordering, and connectivity. This is the largest track in the course — starting with binary tree fundamentals and BST operations, moving through graph traversal with BFS and DFS, and building to advanced topics including Dijkstra's algorithm, Tarjan's bridge-finding algorithm, and Kruskal's minimum spanning tree.

Why it matters:

Graph problems appear in senior-level interviews at every major tech company because they require both pattern recognition and algorithmic depth. The ability to model a real-world problem as a graph and select the right traversal strategy — BFS for shortest paths, DFS for connectivity, topological sort for dependencies — is one of the clearest signals of an experienced algorithmic thinker.

01

Trees: A Refresher

02

Graphs: A Refresher

03

Invert Binary Tree

04

Maximum Depth of a Binary Tree

05

Binary Tree Level Order Traversal

06

Convert Sorted Array to BST

07

Validate Binary Search Tree

08

Kth Smallest Element in a BST

09

Lowest Common Ancestor of a BST

10

Path Sum in a Binary Tree

11

Clone Graph

12

Graph Valid Tree

13

Kruskal's Algorithm

14

Number of Islands

15

Course Schedule

16

Course Schedule II

17

Word Ladder

18

Minimum Height Trees

19

Network Delay Time

20

Reconstruct Itinerary

21

Cheapest Flights Within K Stops

22

Add and Search Word

23

Alien Dictionary

24

Critical Connections in a Network

25

Binary Tree Maximum Path Sum

26

Serialize and Deserialize Binary Tree

Drop Me a Line, Let Me Know What You Think

Thanks for submitting!

© 2026 by WhiteboardReady

bottom of page