> For the complete documentation index, see [llms.txt](https://protegejj.gitbook.io/algorithm-practice/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://protegejj.gitbook.io/algorithm-practice/leetcode/trie.md).

# Trie

- [208 Implement Trie (Prefix Tree)](https://protegejj.gitbook.io/algorithm-practice/leetcode/trie/208-implement-trie-prefix-tree.md)
- [211 Add and Search Word - Data structure design](https://protegejj.gitbook.io/algorithm-practice/leetcode/trie/211-add-and-search-word-data-structure-design.md)
- [336 Palindrome Pairs](https://protegejj.gitbook.io/algorithm-practice/leetcode/trie/336-palindrome-pairs.md)
- [421 Maximum XOR of Two Numbers in an Array](https://protegejj.gitbook.io/algorithm-practice/leetcode/trie/421-maximum-xor-of-two-numbers-in-an-array.md)
- [472 Concatenated Words](https://protegejj.gitbook.io/algorithm-practice/leetcode/trie/472-concatenated-words.md)
- [642 Design Search Autocomplete System](https://protegejj.gitbook.io/algorithm-practice/leetcode/trie/642-design-search-autocomplete-system.md)
- [648 Replace Words](https://protegejj.gitbook.io/algorithm-practice/leetcode/trie/648-replace-words.md)
- [676 Implement Magic Dictionary](https://protegejj.gitbook.io/algorithm-practice/leetcode/trie/676-implement-magic-dictionary.md)
- [677 Map Sum Pairs](https://protegejj.gitbook.io/algorithm-practice/leetcode/trie/677-map-sum-pairs.md)
- [692 Top K Frequent Words](https://protegejj.gitbook.io/algorithm-practice/leetcode/trie/692-top-k-frequent-words.md)
- [720 Longest Word in Dictionary](https://protegejj.gitbook.io/algorithm-practice/leetcode/trie/720-longest-word-in-dictionary.md)
- [745 Prefix and Suffix Search](https://protegejj.gitbook.io/algorithm-practice/leetcode/trie/745-prefix-and-suffix-search.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://protegejj.gitbook.io/algorithm-practice/leetcode/trie.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
