Trie | LeetCode Problems

40 Trie solutions to LeetCode solutions.

Trie Problems View all solutions →

Longest Common Prefix

#14 Easy

Word Break

#139 Medium

Word Break II

#140 Hard

Implement Trie (Prefix Tree)

#208 Medium

Design Add and Search Words Data Structure

#211 Medium

Word Search II

#212 Hard

Palindrome Pairs

#336 Hard

Lexicographical Numbers

#386 Medium

Maximum XOR of Two Numbers in an Array

#421 Medium

Word Squares

#425 Hard

K-th Smallest in Lexicographical Order

#440 Hard

Concatenated Words

#472 Hard

Word Abbreviation

#527 Hard

Replace Words

#648 Medium

Implement Magic Dictionary

#676 Medium

Map Sum Pairs

#677 Medium

Top K Frequent Words

#692 Medium

Longest Word in Dictionary

#720 Medium

Prefix and Suffix Search

#745 Hard

Number of Matching Subsequences

#792 Medium

Short Encoding of Words

#820 Medium

Camelcase Matching

#1023 Medium

Stream of Characters

#1032 Hard

Number of Valid Words for Each Puzzle

#1178 Hard

Remove Sub-Folders from the Filesystem

#1233 Medium

Search Suggestions System

#1268 Medium

Distinct Echo Substrings

#1316 Hard

Maximum XOR With an Element From Array

#1707 Hard

Count Pairs With XOR in a Range

#1803 Hard

Maximum Genetic Difference Query

#1938 Hard

Delete Duplicate Folders in System

#1948 Hard

Encrypt and Decrypt Strings

#2227 Hard

K Divisible Elements Subarrays

#2261 Medium

Sum of Prefix Scores of Strings

#2416 Hard

Words Within Two Edits of Dictionary

#2452 Medium

Extra Characters in a String

#2707 Medium

Maximum Strong Pair XOR I

#2932 Easy

Count Prefix and Suffix Pairs I

#3042 Easy

Find the Length of the Longest Common Prefix

#3043 Medium

Shortest Uncommon Substring in an Array

#3076 Medium