> For the complete documentation index, see [llms.txt](https://dvpr.gitbook.io/coding-interview-patterns/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dvpr.gitbook.io/coding-interview-patterns/1.-pattern-sliding-window.md).

# 1. Pattern: Sliding Window

* **Fixed Window Size:**

![](https://3044525046-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbBKA61iq4XbibNMK4M%2F-MbFJYLrxY5E0EXpZIUv%2F-MbFMGJDg9qCBSDxG_Zu%2Fimage.png?alt=media\&token=ace0fdae-9285-45ac-908f-275455ecbb14)

* **Variable Window Size**:
  * Window size can be increase or decrease
