This video have helped me more than any other DFS video. You're born to be a teacher :D Implementation is also clean and tight, that's excellence of highest highs. I literally no-brainer subscribed to your channel. Many thanks!
Nice videos man, I have an upcoming interview in Java and I'll be relying on your channel for the revision. From one Lebanese guy to another, thank you for the great content
@@OmoruyiOmofonmwan got to the final stage and someone did better than me. fair play though it was Apple so they only take one person per position. This helped though! thanks for asking
i was getting really confused trying to understand the different between bfs and dfs that i kept rewatching both videos to try and learn the concept. after just deciding to implement both and try and analyze line by line the difference, im realizing dfs uses stacks, and bfs use queues
@@geekific Thanks for your prompt response. I want to share an image of my question. Traveling from Bucharest to Sibiu and I need to use DFS BFS and UCS
@@geekific :)) Man, why did you say that to him? 🤔 You can't but know that it is impossible either to share image or use youtube email in youtube:) No youtube email is revealed to anyone. For example, plz say my youtube email:)
Hello :) Yes it is! This is represented by the arrowed-edges between two nodes. If you want to know more about undirected/directed graphs feel free to check this video: ruclips.net/video/bZMNBTkiUoM/видео.html. Cheers!
Thanks a lot for your kind words! Am not sure if you deleted the previous comment but I received a notification for it, so am gonna answer (but I guess you figured it out on your own). You need to have two separate classes, the Vertex and the DFS class, I made them generic and I guess that's where your error comes from (4:33, check ruclips.net/video/vqjA6dqugq8/видео.html for more info) and if you want to use lombok like I did here is your reference: ruclips.net/video/sPgTC-e6QyY/видео.html. Hopefully, when I polish the code and make it available on GitHub you won't encounter any more issues :) Have a nice day!
I will make everything available on GitHub as soon as the channel grows and I make time to polish the code of all the videos! Stay Tuned! In the meantime, if I can help, or you have any question feel free to ask in the comments section :)
@@geekific No, no, no, man!!! I am not talking about your speech rate!:) Your speech rate is perfect☝🏼👍🏼 I even put 0.75x :) Don't even think about bothering about speech rate: it's adjustable in YT. I am talking about MY SPEED of repetition of material. I know dfs/bfs, but each of this video takes me 2 hours to fully cover. How is that?!🤷♂️
6:25 🤔 Why do you tend to use Arrays.asList instead of List.of?🤔 The same in BFS video. The same in Ford-Fulkerson video: "new HashMap(Map.of(...))" instead of simply "Map.of(...)"🤔
The list returned by Arrays.asList() is mutable, whereas, List.of() returns an immutable list that is a copy of the provided input array. So, it depends on what I am doing. Same for Maps.
This video have helped me more than any other DFS video. You're born to be a teacher :D
Implementation is also clean and tight, that's excellence of highest highs.
I literally no-brainer subscribed to your channel.
Many thanks!
Wow, thanks a lot for the kind words and the support man, glad I could help!! :)
@@geekific Had you started this channel few years back you'd have millions subs by now.. Keep grinding and u'll get there
Totally agreed. This video has helped me more than any other video I watched on DFS. Very clear explanation.
Dude! /Your explanations and illistrations are clear! This is the best I have seen. Thanks!
Nice videos man, I have an upcoming interview in Java and I'll be relying on your channel for the revision. From one Lebanese guy to another, thank you for the great content
Thank you Karim! Glad I can help, good luck with your interview :)
Good luck w your interview!
@@manOfPlanetEarth Thanks man!
How did your interview go?
@@OmoruyiOmofonmwan got to the final stage and someone did better than me. fair play though it was Apple so they only take one person per position. This helped though! thanks for asking
Wow! really clean and concise explanation. 1 more subscriber!
Welcome aboard! and Thanks a lot!
i was getting really confused trying to understand the different between bfs and dfs that i kept rewatching both videos to try and learn the concept. after just deciding to implement both and try and analyze line by line the difference, im realizing dfs uses stacks, and bfs use queues
Recursive option with stream is lovely😊
Thankuuu so muchhh u really deserve more 💜
Great Video! Thank you so much
Glad you enjoyed it!
Thank you😍
Yang versi indonesia ada ga yah?
I am sorry, I speak four languages, but Indonesian is not one of them.
Very informative. Thanks for sharing. Please, I have a question relating to this topic and would like to contact you. How do I reach you? Thanks
Thank you! Feel free to reply to this comment or to add a new comment, I read every one of them! Or you can contact me via the youtube mail :)
@@geekific Thanks for your prompt response. I want to share an image of my question. Traveling from Bucharest to Sibiu and I need to use DFS BFS and UCS
Sure... Please feel free to use the comments section or the youtube mail only. Thanks.
@@geekific
:)) Man, why did you say that to him? 🤔
You can't but know that it is impossible either to share image or use youtube email in youtube:) No youtube email is revealed to anyone. For example, plz say my youtube email:)
@@manOfPlanetEarth In the about section you can.
3:40
😂 what a funny smilie is added:)
I even feel all his amazement🤣
v0.setNeighbors(new ArrayList(List.of(v1, v5, v6))), ... to avoid the Exception due to immutable list :-)
In this particular example it is not needed. But great job for noticing it! :)
thanks alot I was getting that exception when I wanted to reverse the order of the elements of the list.
This is directed graph right?
Hello :) Yes it is! This is represented by the arrowed-edges between two nodes. If you want to know more about undirected/directed graphs feel free to check this video: ruclips.net/video/bZMNBTkiUoM/видео.html. Cheers!
@@geekific Thank you so much. You deserve more likes and views. Your vids are very informative and easy to understand. Thank youu
Thanks a lot for your kind words! Am not sure if you deleted the previous comment but I received a notification for it, so am gonna answer (but I guess you figured it out on your own). You need to have two separate classes, the Vertex and the DFS class, I made them generic and I guess that's where your error comes from (4:33, check ruclips.net/video/vqjA6dqugq8/видео.html for more info) and if you want to use lombok like I did here is your reference: ruclips.net/video/sPgTC-e6QyY/видео.html.
Hopefully, when I polish the code and make it available on GitHub you won't encounter any more issues :)
Have a nice day!
@@geekific Yes im sorry i deleted my question because i figured it out thank you so much your vid helps alot. More views and likes to come!
I cant search on github. Can you help me 🥲
Depth First Search is under the dfs folder. I prefer not to send links here as they will/may change in the future.
Algorithms rise up
can i have the source code of this:)
I will make everything available on GitHub as soon as the channel grows and I make time to polish the code of all the videos! Stay Tuned! In the meantime, if I can help, or you have any question feel free to ask in the comments section :)
I already know the material but repetition goes sssoooooo slowly:((((😭😭 What the heck?!🤬
The pace was improved in more recent videos! Let me know your feedback if you catch any recent ones :)
@@geekific
No, no, no, man!!! I am not talking about your speech rate!:) Your speech rate is perfect☝🏼👍🏼
I even put 0.75x :) Don't even think about bothering about speech rate: it's adjustable in YT.
I am talking about MY SPEED of repetition of material. I know dfs/bfs, but each of this video takes me 2 hours to fully cover. How is that?!🤷♂️
ive always had a question in mind are u lebanese XD
xD What gave it away?
@@geekific ur accent man 😂
@@mohamadjafsouniali7989
We can pay tribute to him: the accent is subtle:)
6:25
🤔 Why do you tend to use Arrays.asList instead of List.of?🤔
The same in BFS video.
The same in Ford-Fulkerson video: "new HashMap(Map.of(...))" instead of simply "Map.of(...)"🤔
The list returned by Arrays.asList() is mutable, whereas, List.of() returns an immutable list that is a copy of the provided input array. So, it depends on what I am doing. Same for Maps.
@@geekific
Yes, but you do not add/delete elements in those collections here🤔 You do not mutate. And still use mutable.
Amazing explanation! And the way you have implemented the classes are just 🤌🏻😍