In the puzzle, the dequeue was suddenly introduced without any context. It appeared it was pointing to the result dequeue than a new dequeue introduced in the solution to cache the window.
Sample applies to the explanation and solution of the problem in the following pages.
It will be useful to explain what will be the use of dequeue and how and why elements will be pushed and popd out of it than just stating elements being added and removed.
Course: Grokking Coding Interview Patterns in Java - Learn Interactively
Lesson: Find Maximum in Sliding Window - Grokking Coding Interview Patterns in Java