Problems
Callback's own problems and the LeetCode questions companies have been asking, in one place — pick a category, then filter by company, frequency, status, difficulty, topic, and language.
- Trie57
- Array1842
- String778
- Hash Table749
- Math565
- Dynamic Programming534
- Sorting483
- Greedy401
- Depth-First Search338
- Binary Search305
- Matrix267
- Breadth-First Search261
Algorithms & Data Structures · A tree of nodes keyed by path segment — the OOD-style prompt where the implementation is the test.
Algorithms & Data Structures · Case-insensitive, longest match wins, original text preserved — a trie walk from every offset.
Algorithms & Data Structures · Build the trie first and say why: it prunes the DFS the moment a prefix does not exist.
Algorithms & Data Structures · PUT, GET and a COUNT of everything under a domain: match on the label boundary, then make COUNT fast with a trie.
Algorithms & Data Structures · Pre-order with explicit end-of-word marks and parentheses around children; parsing it back is a recursive descent.
Algorithms & Data Structures · Many patterns, one text: a trie of the recipes with failure links finds every recipe in a single pass over the ingredients.
Algorithms & Data Structures · The ingredients arrive once and cannot be stored: the recipe automaton advances one state per element and never looks back.
Asked on LeetCode
50 questions tagged Trie · all time
- Implement Trie (Prefix Tree)mediumHash TableStringDesignTrie17 companies
- Top K Frequent WordsmediumArrayHash TableStringTrie+415 companies
- Longest Common PrefixeasyArrayStringTrie15 companies
- Find the Length of the Longest Common PrefixmediumArrayHash TableStringTrie14 companies
- Word BreakmediumArrayHash TableStringDynamic Programming+314 companies
- Word Break IIhardArrayHash TableStringDynamic Programming+314 companies
- Word Search IIhardArrayStringBacktrackingTrie+114 companies
- Search Suggestions SystemmediumArrayStringBinary SearchTrie+213 companies
- Design Add and Search Words Data StructuremediumStringDepth-First SearchDesignTrie12 companies
- Design Search Autocomplete SystemhardStringDepth-First SearchDesignTrie+312 companies
- Design In-Memory File SystemhardHash TableStringDesignTrie+110 companies
- Design File SystemmediumHash TableStringDesignTrie9 companies
- Remove Sub-Folders from the FilesystemmediumArrayStringDepth-First SearchTrie8 companies
- Palindrome PairshardArrayHash TableStringTrie+17 companies
- K-th Smallest in Lexicographical OrderhardTrie6 companies
- Number of Matching SubsequencesmediumArrayHash TableStringBinary Search+36 companies
- Lexicographical NumbersmediumDepth-First SearchTrie5 companies
- Delete Duplicate Folders in SystemhardArrayHash TableStringDepth-First Search+35 companies
- Maximum XOR of Two Numbers in an ArraymediumArrayHash TableBit ManipulationTrie5 companies
- Word AbbreviationhardArrayStringGreedyTrie+14 companies
- Add Bold Tag in StringmediumArrayHash TableStringTrie+24 companies
- Stream of CharactershardArrayStringDesignTrie+24 companies
- Minimum Cost to Convert String IIhardArrayStringDynamic ProgrammingGraph Theory+24 companies
- Replace WordsmediumArrayHash TableStringTrie4 companies
- Words Within Two Edits of DictionarymediumArrayStringTrie4 companies
- Count Prefix and Suffix Pairs IeasyArrayStringTrieRolling Hash+24 companies
- Encrypt and Decrypt StringshardArrayHash TableStringDesign+13 companies
- Shortest Uncommon Substring in an ArraymediumArrayHash TableStringTrie3 companies
- Longest Word in DictionarymediumArrayHash TableStringTrie+13 companies
- Extra Characters in a StringmediumArrayHash TableStringDynamic Programming+13 companies
- Concatenated WordshardArrayStringDynamic ProgrammingDepth-First Search+22 companies
- K Divisible Elements SubarraysmediumArrayHash TableTrieRolling Hash+22 companies
- Implement Magic DictionarymediumHash TableStringDepth-First SearchDesign+12 companies
- Prefix and Suffix SearchhardArrayHash TableStringDesign+12 companies
- Number of Distinct Substrings in a StringmediumStringTrieRolling HashSuffix Array+12 companies
- Longest Common Suffix QuerieshardArrayStringTrie2 companies
- Sum of Prefix Scores of StringshardArrayStringTrieCounting2 companies
- Number of Valid Words for Each PuzzlehardArrayHash TableStringBit Manipulation+11 company
- Short Encoding of WordsmediumArrayHash TableStringTrie1 company
- Maximum XOR With an Element From ArrayhardArrayBit ManipulationTrie1 company
- Partition StringmediumHash TableStringTrieSimulation1 company
- Count Prefix and Suffix Pairs IIhardArrayStringTrieRolling Hash+31 company
- Index Pairs of a StringeasyArrayStringTrieSorting+11 company
- Distinct Echo SubstringshardStringTrieRolling HashSuffix Array+31 company
- Bold Words in StringmediumArrayHash TableStringTrie+21 company
- Camelcase MatchingmediumArrayTwo PointersStringTrie+11 company
- Longest Word With All PrefixesmediumArrayStringDepth-First SearchTrie1 company
- Word SquareshardArrayStringBacktrackingTrie1 company
- Implement Trie II (Prefix Tree)mediumHash TableStringDesignTrie1 company
- Map Sum PairsmediumHash TableStringDesignTrie1 company
Listings only — titles, difficulty, and tags link out to LeetCode. Imported from the leetcode-company-wise-problems snapshot dated 1 June 2025. Frequency is that dataset's own relative score within a company and time range.