Summary
This chapter covered the must-know stack and queue problems for any candidate that is preparing for a Java developer technical interview. Stacks and queues occur in many real applications, so mastering them is one of the top skills that an interviewer will test you on.
In the next chapter, Trees, Tries, and Graphs, you'll see that stacks and queues are frequently used for solving problems that involve trees and graphs as well, which means they also deserve your attention.