# Data Structure

- [Basic Calculator](https://wentao-shao.gitbook.io/leetcode/data-structure/basic-calculator.md)
- [224.Basic-Calculator](https://wentao-shao.gitbook.io/leetcode/data-structure/basic-calculator/224.basic-calculator.md)
- [227.Basic-Calculator-II](https://wentao-shao.gitbook.io/leetcode/data-structure/basic-calculator/227.basic-calculator-ii.md)
- [772.Basic-Calculator-III](https://wentao-shao.gitbook.io/leetcode/data-structure/basic-calculator/772.basic-calculator-iii.md)
- [Basic Claculator Iv](https://wentao-shao.gitbook.io/leetcode/data-structure/basic-calculator/basic-claculator-iv.md)
- [1146.Snapshot-Array](https://wentao-shao.gitbook.io/leetcode/data-structure/1146.snapshot-array.md)
- [1152.Analyze-User-Website-Visit-Pattern](https://wentao-shao.gitbook.io/leetcode/data-structure/1152.analyze-user-website-visit-pattern.md)
- [1167.Minimum-Cost-to-Connect-Sticks](https://wentao-shao.gitbook.io/leetcode/data-structure/1167.minimum-cost-to-connect-sticks.md)
- [1172.Dinner-Plate-Stacks](https://wentao-shao.gitbook.io/leetcode/data-structure/1172.dinner-plate-stacks.md)
- [1236.Web-Crawler](https://wentao-shao.gitbook.io/leetcode/data-structure/1236.web-crawler.md)
- [128.Longest-Consecutive-Sequence](https://wentao-shao.gitbook.io/leetcode/data-structure/128.longest-consecutive-sequence.md)
- [146.LRU-Cache](https://wentao-shao.gitbook.io/leetcode/data-structure/146.lru-cache.md)
- [155.Min-Stack](https://wentao-shao.gitbook.io/leetcode/data-structure/155.min-stack.md)
- [158.Read-N-Characters-Given-Read4-II---Call-multiple-times](https://wentao-shao.gitbook.io/leetcode/data-structure/158.read-n-characters-given-read4-ii-call-multiple-times.md)
- [225.Implement-Stack-using-Queues](https://wentao-shao.gitbook.io/leetcode/data-structure/225.implement-stack-using-queues.md)
- [232.Implement-Queue-using-Stacks](https://wentao-shao.gitbook.io/leetcode/data-structure/232.implement-queue-using-stacks.md)
- [253.Meeting-Rooms-II](https://wentao-shao.gitbook.io/leetcode/data-structure/253.meeting-rooms-ii.md)
- [263.Ugly-Number](https://wentao-shao.gitbook.io/leetcode/data-structure/263.ugly-number.md)
- [271.Encode-and-Decode-Strings](https://wentao-shao.gitbook.io/leetcode/data-structure/271.encode-and-decode-strings.md)
- [\[28.Implement-strStr()\](Data-Structure/28.Implement-strStr().md)](https://wentao-shao.gitbook.io/leetcode/data-structure/28.implement-strstr-data-structure-28.implement-strstr--md.md)
- [281.Zigzag-Iterator](https://wentao-shao.gitbook.io/leetcode/data-structure/281.zigzag-iterator.md)
- [284.Peeking-Iterator](https://wentao-shao.gitbook.io/leetcode/data-structure/284.peeking-iterator.md)
- [295.Find-Median-from-Data-Stream](https://wentao-shao.gitbook.io/leetcode/data-structure/295.find-median-from-data-stream.md)
- [314.Binary-Tree-Vertical-Order-Traversal](https://wentao-shao.gitbook.io/leetcode/data-structure/314.binary-tree-vertical-order-traversal.md)
- [332.Reconstruct-Itinerary](https://wentao-shao.gitbook.io/leetcode/data-structure/332.reconstruct-itinerary.md)
- [341.Flatten-Nested-List-Iterator](https://wentao-shao.gitbook.io/leetcode/data-structure/341.flatten-nested-list-iterator.md)
- [346.Moving-Average-from-Data-Stream](https://wentao-shao.gitbook.io/leetcode/data-structure/346.moving-average-from-data-stream.md)
- [348.Design-Tic-Tac-Toe](https://wentao-shao.gitbook.io/leetcode/data-structure/348.design-tic-tac-toe.md)
- [353.Design-Snake-Game](https://wentao-shao.gitbook.io/leetcode/data-structure/353.design-snake-game.md)
- [359.Logger-Rate-Limiter](https://wentao-shao.gitbook.io/leetcode/data-structure/359.logger-rate-limiter.md)
- [362.Design-Hit-Counter](https://wentao-shao.gitbook.io/leetcode/data-structure/362.design-hit-counter.md)
- [\[380.Insert-Delete-GetRandom-O(1)\](Data-Structure/380.Insert-Delete-GetRandom-O(1).md)](https://wentao-shao.gitbook.io/leetcode/data-structure/380.insert-delete-getrandom-o-1-data-structure-380.insert-delete-getrandom-o-1--md.md)
- [\[381.Insert-Delete-GetRandom-O(1)---Duplicates-allowed\](Data-Structure/381.Insert-Delete-GetRandom-O](https://wentao-shao.gitbook.io/leetcode/data-structure/381.insert-delete-getrandom-o-1-duplicates-allowed-data-structure-381.insert-delete-getrandom-o-1-du.md)
- [384.Shuffle-an-Array](https://wentao-shao.gitbook.io/leetcode/data-structure/384.shuffle-an-array.md)
- [41.First-Missing-Positive](https://wentao-shao.gitbook.io/leetcode/data-structure/41.first-missing-positive.md)
- [460.LFU-Cache](https://wentao-shao.gitbook.io/leetcode/data-structure/460.lfu-cache.md)
- [\[470.Implement-Rand10()-Using-Rand7()\](Data-Structure/470.Implement-Rand10()-Using-Rand7().md)](https://wentao-shao.gitbook.io/leetcode/data-structure/470.implement-rand10-using-rand7-data-structure-470.implement-rand10-using-rand7--md.md)
- [49.Group-Anagrams](https://wentao-shao.gitbook.io/leetcode/data-structure/49.group-anagrams.md)
- [523.Continuous-Subarray-Sum](https://wentao-shao.gitbook.io/leetcode/data-structure/523.continuous-subarray-sum.md)
- [528.Random-Pick-with-Weight](https://wentao-shao.gitbook.io/leetcode/data-structure/528.random-pick-with-weight.md)
- [535.Encode-and-Decode-TinyURL](https://wentao-shao.gitbook.io/leetcode/data-structure/535.encode-and-decode-tinyurl.md)
- [545.Boundary-of-Binary-Tree](https://wentao-shao.gitbook.io/leetcode/data-structure/545.boundary-of-binary-tree.md)
- [572.Subtree-of-Another-Tree](https://wentao-shao.gitbook.io/leetcode/data-structure/572.subtree-of-another-tree.md)
- [588.Design-In-Memory-File-System](https://wentao-shao.gitbook.io/leetcode/data-structure/588.design-in-memory-file-system.md)
- [622.Design-Circular-Queue](https://wentao-shao.gitbook.io/leetcode/data-structure/622.design-circular-queue.md)
- [642.Design-Search-Autocomplete-System](https://wentao-shao.gitbook.io/leetcode/data-structure/642.design-search-autocomplete-system.md)
- [692.Top-K-Frequent-Words](https://wentao-shao.gitbook.io/leetcode/data-structure/692.top-k-frequent-words.md)
- [706.Design-HashMap](https://wentao-shao.gitbook.io/leetcode/data-structure/706.design-hashmap.md)
- [707.Design-Linked-List](https://wentao-shao.gitbook.io/leetcode/data-structure/707.design-linked-list.md)
- [729.My-Calendar-I](https://wentao-shao.gitbook.io/leetcode/data-structure/729.my-calendar-i.md)
- [731.My-Calendar-II](https://wentao-shao.gitbook.io/leetcode/data-structure/731.my-calendar-ii.md)
- [759.Employee-Free-Time](https://wentao-shao.gitbook.io/leetcode/data-structure/759.employee-free-time.md)
- [794.Valid-Tic-Tac-Toe-State](https://wentao-shao.gitbook.io/leetcode/data-structure/794.valid-tic-tac-toe-state.md)
- [84.Largest-Rectangle-in-Histogram](https://wentao-shao.gitbook.io/leetcode/data-structure/84.largest-rectangle-in-histogram.md)
- [843.Guess-the-Word](https://wentao-shao.gitbook.io/leetcode/data-structure/843.guess-the-word.md)
- [900.RLE-Iterator](https://wentao-shao.gitbook.io/leetcode/data-structure/900.rle-iterator.md)
- [937.Reorder-Data-in-Log-Files](https://wentao-shao.gitbook.io/leetcode/data-structure/937.reorder-data-in-log-files.md)
- [981.Time-Based-Key-Value-Store](https://wentao-shao.gitbook.io/leetcode/data-structure/981.time-based-key-value-store.md)
- [99.Recover-Binary-Search-Tree](https://wentao-shao.gitbook.io/leetcode/data-structure/99.recover-binary-search-tree.md)
- [Add And Search Word Data Structure Design](https://wentao-shao.gitbook.io/leetcode/data-structure/add-and-search-word-data-structure-design.md)
- [Heapify](https://wentao-shao.gitbook.io/leetcode/data-structure/heapify.md)
- [Max Tree](https://wentao-shao.gitbook.io/leetcode/data-structure/max-tree.md)
- [Rehashing](https://wentao-shao.gitbook.io/leetcode/data-structure/rehashing.md)
- [Subarray Sum Zero](https://wentao-shao.gitbook.io/leetcode/data-structure/subarray-sum-zero.md)


---

# 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://wentao-shao.gitbook.io/leetcode/data-structure.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.
