This article includes five sections:
First, you can check out this article to see how sliding window algorithm looks like: