type
Trie LeetCode problems — visual solutions
Every LeetCode problem tagged Trie — the full catalogue, plus animated visual solutions in Python and Go when a deep-dive exists.
61 problems · 46 animated · 15 locked
Full Trie index
- 14Longest Common PrefixWatch
- 139Word BreakWatch
- 140Word Break IIWatch
- 208Implement Trie (Prefix Tree)Watch
- 211Design Add and Search Words Data StructureWatch
- 212Word Search IIWatch
- 336Palindrome PairsWatch
- 386Lexicographical NumbersWatch
- 421Maximum XOR of Two Numbers in an ArrayWatch
- 425Word SquaresLocked
- 440K-th Smallest in Lexicographical OrderWatch
- 472Concatenated WordsWatch
- 527Word AbbreviationLocked
- 588Design In-Memory File SystemLocked
- 616Add Bold Tag in StringLocked
- 642Design Search Autocomplete SystemLocked
- 648Replace WordsWatch
- 676Implement Magic DictionaryWatch
- 677Map Sum PairsWatch
- 692Top K Frequent WordsWatch
- 720Longest Word in DictionaryWatch
- 745Prefix and Suffix SearchWatch
- 758Bold Words in StringLocked
- 792Number of Matching SubsequencesWatch
- 820Short Encoding of WordsWatch
- 1023Camelcase MatchingWatch
- 1032Stream of CharactersWatch
- 1065Index Pairs of a StringLocked
- 1166Design File SystemLocked
- 1178Number of Valid Words for Each PuzzleWatch
- 1233Remove Sub-Folders from the FilesystemWatch
- 1268Search Suggestions SystemWatch
- 1316Distinct Echo SubstringsWatch
- 1698Number of Distinct Substrings in a StringLocked
- 1707Maximum XOR With an Element From ArrayWatch
- 1803Count Pairs With XOR in a RangeWatch
- 1804Implement Trie II (Prefix Tree)Locked
- 1858Longest Word With All PrefixesLocked
- 1938Maximum Genetic Difference QueryWatch
- 1948Delete Duplicate Folders in SystemWatch
- 2227Encrypt and Decrypt StringsWatch
- 2261K Divisible Elements SubarraysWatch
- 2416Sum of Prefix Scores of StringsWatch
- 2452Words Within Two Edits of DictionaryWatch
- 2479Maximum XOR of Two Non-Overlapping SubtreesLocked
- 2707Extra Characters in a StringWatch
- 2932Maximum Strong Pair XOR IWatch
- 2935Maximum Strong Pair XOR IIWatch
- 2977Minimum Cost to Convert String IIWatch
- 3042Count Prefix and Suffix Pairs IWatch
- 3043Find the Length of the Longest Common PrefixWatch
- 3045Count Prefix and Suffix Pairs IIWatch
- 3076Shortest Uncommon Substring in an ArrayWatch
- 3093Longest Common Suffix QueriesWatch
- 3291Minimum Number of Valid Strings to Form Target IWatch
- 3485Longest Common Prefix of K Strings After RemovalWatch
- 3491Phone Number PrefixLocked
- 3597Partition String Watch
- 3632Subarrays with XOR at Least KLocked
- 3758Convert Number Words to DigitsLocked
- 3845Maximum Subarray XOR with Bounded RangeWatch