Summary
This was one of the tough chapters of this book and a must-read for any technical interview. Trees and graphs are such wide, wonderful, and challenging topics that entire books have been dedicated to them. However, when you have to prepare for an interview, you don't have the time to study tons of books and deep dive into every topic. This is exactly where the magic of this chapter comes into the picture: this chapter (just like the entire book) is totally focused on the fact that you must achieve your goal: ace a technical interview.
In other words, this chapter contained the most popular tree and graph problems that may be encountered in technical interviews, along with meaningful figures, comprehensive explanations, and clear and clean code.
In the next chapter, we'll tackle problems related to sorting and searching.