Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 2.66 KB

trie-node.md

File metadata and controls

19 lines (16 loc) · 2.66 KB

Trie Node Data Structure Problems

LeetCode problems solved using Trie Node data structures.

Problems

# Problem Difficulty Algorithm Time Space Explanation
208 Implement Trie (Prefix Tree) Medium Prefix Tree Lookup O(n) O(n) Explanation
225 Implement Stack using Queues Easy Prefix Tree Lookup O(n) O(n) Explanation
232 Implement Queue using Stacks Easy Prefix Tree Lookup O(n) O(n) Explanation
470 Implement Rand10() Using Rand7() Medium Prefix Tree Lookup O(n) O(n) Explanation
676 Implement Magic Dictionary Medium Prefix Tree Lookup O(n) O(n) Explanation
775 Global and Local Inversions Medium Prefix Tree Lookup O(n) O(n) Explanation
1018 Binary Prefix Divisible By 5 Easy Prefix Tree Lookup O(n) O(n) Explanation
2000 Reverse Prefix of Word Easy Prefix Tree Lookup O(n) O(n) Explanation
2185 Counting Words With a Given Prefix Easy Prefix Tree Lookup O(n) O(n) Explanation
3508 Implement Router Medium Prefix Tree Lookup O(n) O(n) Explanation
4077 Minimize Inversions in a Prefix Tree Hard Prefix Tree Lookup O(n) O(n) Explanation