- Binary Trees (DFS, BFS)
- Binary Search Trees
- Graph Traversals (DFS, BFS)
- Implicit Graphs
- Minimum Depth of Binary Tree
- Max Area of Island
- Word Ladder
-
What is the time complexity of traversing a binary tree using depth-first search (DFS)?
- a) O(n log n)
- b) O(n)
- c) O(log n)
- d) O(1)
-
In a breadth-first search (BFS) traversal of a graph, what is the time complexity if
V
is the number of vertices andE
is the number of edges?- a) O(V + E)
- b) O(V log E)
- c) O(V^2)
- d) O(V + E^2)
-
In a binary search tree, where is the smallest element located?
- a) At the root
- b) In the leftmost node
- c) In the rightmost node
- d) At any leaf node