Subtopic 8.4
Exam Practice
1lessons30 min0done
This subtopic gathers the kinds of graph questions that come up most in university data structures exams. The questions follow the types seen in real exams, and every answer is worked out step by step.
Solve each one yourself first, then open it and compare. For BFS and DFS questions, taking neighbours from small to large and noting the contents of the queue or stack at every step is the safest way.