Trie Problems
45 Trie LeetCode problems · Solve with AI-powered hints & step-by-step explanations.
Learn the coding interview patterns behind these problems, including Trie interview patterns.
Start with these
All Trie problems
14 Longest Common Prefix Easy139 Word Break Medium140 Word Break II Hard208 Implement Trie (Prefix Tree) Medium211 Design Add and Search Words Data Structure Medium212 Word Search II Hard336 Palindrome Pairs Hard386 Lexicographical Numbers Medium421 Maximum XOR of Two Numbers in an Array Medium440 K-th Smallest in Lexicographical Order Hard472 Concatenated Words Hard648 Replace Words Medium676 Implement Magic Dictionary Medium677 Map Sum Pairs Medium692 Top K Frequent Words Medium720 Longest Word in Dictionary Medium745 Prefix and Suffix Search Hard792 Number of Matching Subsequences Medium820 Short Encoding of Words Medium1023 Camelcase Matching Medium1032 Stream of Characters Hard1178 Number of Valid Words for Each Puzzle Hard1233 Remove Sub-Folders from the Filesystem Medium1268 Search Suggestions System Medium1316 Distinct Echo Substrings Hard1707 Maximum XOR With an Element From Array Hard1803 Count Pairs With XOR in a Range Hard1938 Maximum Genetic Difference Query Hard1948 Delete Duplicate Folders in System Hard2227 Encrypt and Decrypt Strings Hard2261 K Divisible Elements Subarrays Medium2416 Sum of Prefix Scores of Strings Hard2452 Words Within Two Edits of Dictionary Medium2707 Extra Characters in a String Medium2932 Maximum Strong Pair XOR I Easy2935 Maximum Strong Pair XOR II Hard2977 Minimum Cost to Convert String II Hard3042 Count Prefix and Suffix Pairs I Easy3043 Find the Length of the Longest Common Prefix Medium3045 Count Prefix and Suffix Pairs II Hard3076 Shortest Uncommon Substring in an Array Medium3093 Longest Common Suffix Queries Hard3291 Minimum Number of Valid Strings to Form Target I Medium3485 Longest Common Prefix of K Strings After Removal Hard3597 Partition String Medium