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

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

Greg Hogg

Greg Hogg

Күн бұрын

Master Data Structures & Algorithms for FREE at AlgoMap.io/
Code solutions in Python, Java, C++ and JS for this can be found at my GitHub repo here: github.com/gah...
Complete DSA Pathway Zero to Hero: • Data Structures & Algo...
Please check my playlists for free DSA problem solutions:
• Fundamental DSA Theory
• Array & String Questions
• 2 Pointers Questions
• Sliding Window Questions
• Binary Search Questions
• Stack Questions
• Linked List Questions
• Tree Questions
• Heap Questions
• Recursive Backtracking...
• Graph Questions
• Dynamic Programming (D...
My Data Science & ML KZbin Playlist: • Greg's Path to Become ...
Learn Python and Data Science FASTER at mlnow.ai :)
Support the content: / @greghogg
Follow me on Instagram: / greghogg5
Connect with me on LinkedIn: / greghogg
Follow me on TikTok: / greghogg5
Coursera Plus: imp.i384100.ne...
My Favorite Courses:
Data Structures & Algorithms:
UCalifornia San Diego DSA: imp.i384100.ne...
Stanford Algorithms: imp.i384100.ne...
Python Data Structures: imp.i384100.ne...
Meta Coding Interview Prep: imp.i384100.ne...
Python:
UMichigan Python for Everybody: imp.i384100.ne...
Python Mastery from MLNOW.ai: mlnow.ai/cours...
Google IT Automation w/ Python: imp.i384100.ne...
Web Dev / Full Stack:
Meta Front-End Developer: imp.i384100.ne...
IBM Full Stack Developer: imp.i384100.ne...
Meta Back-End Developer: imp.i384100.ne...
John Hopkins HTML, CSS & JS: imp.i384100.ne...
IBM DevOps: imp.i384100.ne...
Cloud Development:
AWS Fundamentals: imp.i384100.ne...
GCP Cloud Engineer: imp.i384100.ne...
Microsoft Azure Fundamentals: imp.i384100.ne...
Game Development:
Michigan State Unity Development: imp.i384100.ne...
UColorado C++ for Unreal Engine: www.coursera.o...
SQL & Data Science:
SQL by MLNOW.ai: mlnow.ai/cours...
Python for Data Science by MLNOW.ai: mlnow.ai/cours...
Google Data Analytics: imp.i384100.ne...
IBM Data Science: imp.i384100.ne...
IBM Data Engineer: imp.i384100.ne...
Machine Learning & AI:
ML Mastery at MLNOW.ai: mlnow.ai/cours...
ML w/ Andrew Ng: www.coursera.o...
Deep Learning w/ Andrew Ng: imp.i384100.ne...

Пікірлер: 13
@GregHogg
@GregHogg 4 ай бұрын
Master Data Structures & Algorithms For FREE at AlgoMap.io!
@mr.sheldor794
@mr.sheldor794 5 ай бұрын
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 5 ай бұрын
Yeah this one is a bit confusing with the nested dictionaries... Glad you enjoyed it!
@christianjt7018
@christianjt7018 3 ай бұрын
Wow! This is the first time that I see that trick with dictionaries. You are awesome, thanks for sharing.
@saurabhbhagat4528
@saurabhbhagat4528 Ай бұрын
Wow, I solved it exactly like your solution with nested 'Objects' in javascript
@saleheen1
@saleheen1 26 күн бұрын
Very clever
@wennwenn1422
@wennwenn1422 4 ай бұрын
@3:18, I think in static typed languages (C#/Java), TreeNode object implementation is much easier? would you agree?
@GregHogg
@GregHogg 4 ай бұрын
@@wennwenn1422 You could still use maps but yeah probably
@charansaimathkala1096
@charansaimathkala1096 5 ай бұрын
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 5 ай бұрын
Done, please watch my video called Fibonacci number
@charansaimathkala1096
@charansaimathkala1096 4 ай бұрын
@@GregHogg TQ so much
@GarouNguyen
@GarouNguyen 4 ай бұрын
bro what is d = d[c] i print that with sublime text but still don't understand
@roboeagle4930
@roboeagle4930 Ай бұрын
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':{'.':'.'}}
Last Stone Weight - Leetcode 1046 - Heaps (Python)
7:58
Greg Hogg
Рет қаралды 3,9 М.
Implement Trie (Prefix Tree) - Leetcode 208
18:56
NeetCode
Рет қаралды 212 М.
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 51 МЛН
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 15 МЛН
The Trie Data Structure (Prefix Tree)
21:07
Jacob Sorber
Рет қаралды 82 М.
L1. Implement TRIE | INSERT | SEARCH | STARTSWITH
31:25
take U forward
Рет қаралды 325 М.
Design Twitter - Leetcode 355 - Python
22:47
NeetCode
Рет қаралды 91 М.
Rotting Oranges - Leetcode 994 - Graphs (Python)
16:09
Greg Hogg
Рет қаралды 3,4 М.
Leetcode - Implement Trie (Prefix Tree) (Python)
7:15
Timothy H Chang
Рет қаралды 7 М.
Number of Islands - Leetcode 200 - Graphs (Python)
11:01
Greg Hogg
Рет қаралды 10 М.
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 51 МЛН