Chapter 13: Trees and Graphs
This chapter covers one of the trickiest topics asked in interviews: trees and graphs. While there are tons of problems related to these two topics, only a handful of them are actually encountered in interviews. Therefore, it is very important to prioritize the most popular problems with trees and graphs.
In this chapter, we'll start with a brief overview of trees and graphs. Later, we'll tackle the most popular and challenging problems encountered in interviews at IT giants such as Amazon, Microsoft, Adobe, and other companies. By the end of this chapter, you'll know how to answer interview questions and solve coding challenges regarding trees and graphs in an efficient and comprehensive way.
This chapter covers the following topics:
- Trees in a nutshell
- Graphs in a nutshell
- Coding challenges
So, let's get started!