# Static Size

给定一段字符串t，检测另一段字符串s是否包含给定字符串的permutation。维持一个长度为t.len的abstract window和一个具体的map. 把这个map先填上t的元素。当把window沿着s往前移动时，从map中拿走相应的一个元素，并还回出了window的元素到map中。当map所有元素都为0时则表明窗口元素和t相同。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hao-fu-1.gitbook.io/oj/multiple-pointers/sliding-window/static-size.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
