Master Data Structures & Algorithms For FREE at AlgoMap.io!
@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!
@geetarjohn2 ай бұрын
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.
@SHIHJUIheh3 ай бұрын
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!
@GregHogg3 ай бұрын
Glad to hear it ☺️☺️
@anujsharma95956 ай бұрын
I like your way of teaching bro Comment from India
@GregHogg6 ай бұрын
Thank you so much! Reply from Toronto :)
@christianjt70183 ай бұрын
the explanation was really clear, thanks!
@GregHogg3 ай бұрын
You're flying through this!!
@christianjt70183 ай бұрын
@@GregHogg thanks Greg, your videos are very well explained, I have learned a lot
@GregHogg3 ай бұрын
@@christianjt7018 that's amazing 🤩🤩
@keltoro5 ай бұрын
Isn't it better to use DFS here instead?
@anthonygong1003 ай бұрын
He is using DFS, there's just two passes instead of one
@GarouNguyen4 ай бұрын
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