Clone Graph - Leetcode 133 - Graphs (Python)

  Рет қаралды 3,894

Greg Hogg

Greg Hogg

Күн бұрын

Пікірлер: 16
@GregHogg
@GregHogg 4 ай бұрын
Master Data Structures & Algorithms For FREE at AlgoMap.io!
@printhaider
@printhaider Ай бұрын
I'm going to be honest, I really love your explanations. You do it best! Everytime I have any problem trying to understand any blind 75 or the 150 list problem I always search "[input problem] Greg Hogg". I hope you keep it up and I look forward to learning more from your future videos!
@geetarjohn
@geetarjohn 2 ай бұрын
Thanks, this was very helpful. I paused after you described the approach and then implemented my own version of the solution based on your strategy. My differences were: 1. Using recursive DFS to save on a stack. 2. I doubled the use of my old-to-new mapping dict as a visited set. Because the keys to the dict have to be unique anyway. Not sure that significantly improves efficiency or anything but it did work.
@SHIHJUIheh
@SHIHJUIheh 3 ай бұрын
Thank you for providing such a great explanation. This is the most clearest explanation I 've seen on the entire internet. Not only did you provide the solution, but you also explained the underlying concepts!
@GregHogg
@GregHogg 3 ай бұрын
Glad to hear it ☺️☺️
@anujsharma9595
@anujsharma9595 6 ай бұрын
I like your way of teaching bro Comment from India
@GregHogg
@GregHogg 6 ай бұрын
Thank you so much! Reply from Toronto :)
@christianjt7018
@christianjt7018 3 ай бұрын
the explanation was really clear, thanks!
@GregHogg
@GregHogg 3 ай бұрын
You're flying through this!!
@christianjt7018
@christianjt7018 3 ай бұрын
@@GregHogg thanks Greg, your videos are very well explained, I have learned a lot
@GregHogg
@GregHogg 3 ай бұрын
@@christianjt7018 that's amazing 🤩🤩
@keltoro
@keltoro 5 ай бұрын
Isn't it better to use DFS here instead?
@anthonygong100
@anthonygong100 3 ай бұрын
He is using DFS, there's just two passes instead of one
@GarouNguyen
@GarouNguyen 4 ай бұрын
hash_map[node] = Node(val=node.val) why it has the rigth to access neighbours atteibute? Why just not Node() bro can you explain, I don't understand
@souvickmaity4867
@souvickmaity4867 6 ай бұрын
I also reply from India
@UrsKarthikHere
@UrsKarthikHere 4 ай бұрын
Indian
Rotting Oranges - Leetcode 994 - Graphs (Python)
16:09
Greg Hogg
Рет қаралды 3,4 М.
5 Simple Steps for Solving Dynamic Programming Problems
21:27
Reducible
Рет қаралды 1,1 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 100 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 5 МЛН
Молодой боец приземлил легенду!
01:02
МИНУС БАЛЛ
Рет қаралды 1,9 МЛН
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 12 МЛН
Pacific Atlantic Water Flow - Leetcode 417 - Graphs (Python)
17:10
Clone Graph - Depth First Search - Leetcode 133
11:48
NeetCode
Рет қаралды 230 М.
Clone Graph | Leetcode 133 | DFS | Day-23
18:19
Ayushi Sharma
Рет қаралды 10 М.
Amazon Coding Interview Question - Clone Graph (LeetCode)
13:56
AlgosWithMichael
Рет қаралды 33 М.
Coin Change - Leetcode 322 - Dynamic Programming (Python)
15:27
Clone graph | Leetcode #133
13:01
Techdose
Рет қаралды 59 М.
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 100 МЛН