Implement Trie (Prefix Tree) - Leetcode 208 - Trees (Python)

  Рет қаралды 4,780

Greg Hogg

Greg Hogg

Күн бұрын

Пікірлер: 13
@GregHogg
@GregHogg 5 ай бұрын
Master Data Structures & Algorithms For FREE at AlgoMap.io!
@mr.sheldor794
@mr.sheldor794 6 ай бұрын
As someone who is a beginner in coding this was very helpful to watch. I didn't understand some of it, but the overall idea made sense. Good video
@GregHogg
@GregHogg 6 ай бұрын
Yeah this one is a bit confusing with the nested dictionaries... Glad you enjoyed it!
@christianjt7018
@christianjt7018 4 ай бұрын
Wow! This is the first time that I see that trick with dictionaries. You are awesome, thanks for sharing.
@saurabhbhagat4528
@saurabhbhagat4528 3 ай бұрын
Wow, I solved it exactly like your solution with nested 'Objects' in javascript
@wennwenn1422
@wennwenn1422 6 ай бұрын
@3:18, I think in static typed languages (C#/Java), TreeNode object implementation is much easier? would you agree?
@GregHogg
@GregHogg 6 ай бұрын
@@wennwenn1422 You could still use maps but yeah probably
@saleheen1
@saleheen1 2 ай бұрын
Very clever
@GarouNguyen
@GarouNguyen 5 ай бұрын
bro what is d = d[c] i print that with sublime text but still don't understand
@roboeagle4930
@roboeagle4930 2 ай бұрын
so the dictionary is getting more nested right? So what d = d[c] means is go into the next level of the dictionary for example say d = {'h':{'i':{'.':'.'}}} and you find d[c] where c = 'h'. The value of that is {'i':{'.':'.'}}, so if we set d = d[c] we move into the dictionary so our new d = {'i':{'.':'.'}}
@charansaimathkala1096
@charansaimathkala1096 6 ай бұрын
Hi , can you do a video on dynamic programming how to solve those problems efficiently, as I am a beginner can you explain it in detail
@GregHogg
@GregHogg 6 ай бұрын
Done, please watch my video called Fibonacci number
@charansaimathkala1096
@charansaimathkala1096 6 ай бұрын
@@GregHogg TQ so much
Implement Trie (Prefix Tree) - Leetcode 208
18:56
NeetCode
Рет қаралды 219 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Number of Islands - Leetcode 200 - Graphs (Python)
11:01
Greg Hogg
Рет қаралды 12 М.
Word Search - Leetcode 79 - Recursive Backtracking (Python)
12:24
Database Sharding and Partitioning
23:53
Arpit Bhayani
Рет қаралды 106 М.
The Trie Data Structure (Prefix Tree)
21:07
Jacob Sorber
Рет қаралды 85 М.
How I Mastered Data Structures and Algorithms in 8 Weeks
15:46
Aman Manazir
Рет қаралды 140 М.
Trie Data Structure Implementation (LeetCode)
11:50
AlgosWithMichael
Рет қаралды 73 М.
Permutations - Leetcode 46 - Recursive Backtracking (Python)
9:42
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 904 М.
L1. Implement TRIE | INSERT | SEARCH | STARTSWITH
31:25
take U forward
Рет қаралды 335 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН