Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 2.69 KB

trie.md

File metadata and controls

32 lines (23 loc) · 2.69 KB

Trie LeetCode Problems

A collection of LeetCode problems solved using Trie pattern techniques, explanations, and complexity analysis.

Problems

Easy

# Problem Language Time Space Explanation
225 Implement Stack using Queues PHP O(n) O(n) Explanation
232 Implement Queue using Stacks JavaScript, PHP O(n) O(n) Explanation
1018 Binary Prefix Divisible By 5 Python O(n) O(n) Explanation
2000 Reverse Prefix of Word JavaScript O(n) O(n) Explanation
2185 Counting Words With a Given Prefix Python O(n) O(n) Explanation

Medium

# Problem Language Time Space Explanation
208 Implement Trie (Prefix Tree) JavaScript O(n) O(n) Explanation
470 Implement Rand10() Using Rand7() JavaScript O(n) O(n) Explanation
676 Implement Magic Dictionary Python O(n) O(n) Explanation
775 Global and Local Inversions Python O(n) O(n) Explanation
3508 Implement Router JavaScript O(n) O(n) Explanation

Hard

# Problem Language Time Space Explanation
4077 Minimize Inversions in a Prefix Tree JavaScript O(n) O(n) Explanation