Graph Search Algorithms in 100 Seconds - And Beyond with JS

  Рет қаралды 280,066

Fireship

Fireship

Күн бұрын

Пікірлер: 502
@Fireship
@Fireship 4 жыл бұрын
Do you want to see more videos with a technical "interview prep" focus? Usually I cover practical projects, so curious to know what you think...
@sadn1ck
@sadn1ck 4 жыл бұрын
YES please! Much love!
@nicolasferrero9928
@nicolasferrero9928 4 жыл бұрын
I like this videos more than others
@PrakashVl
@PrakashVl 4 жыл бұрын
Yes interview preparation, this one is awesome
@abhinav.sharma
@abhinav.sharma 4 жыл бұрын
YEEEEEEEEEEEEEEESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
@sagnikpradhan3594
@sagnikpradhan3594 4 жыл бұрын
Yes!
@sagnikpradhan3594
@sagnikpradhan3594 4 жыл бұрын
I would love more algorithms, data structures, and ML too!
@nils42
@nils42 4 жыл бұрын
Thanks, with my 6 years+ experience as a Frontend-dev, I now feel like a junior-dev again 😅
@shygrammer
@shygrammer 7 ай бұрын
you just said it!
@ihavetwofaces
@ihavetwofaces 4 жыл бұрын
+1 for the "x in 100 seconds... but wait there's more!" format. Getting a brief overview of the concepts followed immediately by a more in-depth implementation of those concepts is a fantastic way to structure the video.
@meco
@meco 4 жыл бұрын
I would’ve needed this for my computer science class 😫😫 Once again your content is the high quality learning we all needed
@athulp6591
@athulp6591 4 жыл бұрын
In my case , it is right on time.
@miteshkumar3183
@miteshkumar3183 4 жыл бұрын
This is a basic topic in a first semester computer science class.
@anirudhtv
@anirudhtv 4 жыл бұрын
IF CS WAS A MOVIE THEN THIS MAN YOU WOULD BE THE AUTHOR
@YoloMonstaaa
@YoloMonstaaa 4 жыл бұрын
Movies have script writers and directors as key creative roles. No authors.
@calvinebun-amu5397
@calvinebun-amu5397 4 жыл бұрын
100%
@Fireship
@Fireship 4 жыл бұрын
I'm writing a screenplay titled "CS - The Movie" ;)
@raymondmichael4987
@raymondmichael4987 4 жыл бұрын
Fireship, I'll definitely watch it. Greetings from Tanzania 🇹🇿
@abelkidanemariam6485
@abelkidanemariam6485 4 жыл бұрын
another Ali gate fan here
@Pogibakayo
@Pogibakayo 4 жыл бұрын
So glad. While these X in 100 seconds videos are great for some topics, this definitely needed a longer one.
@Fireship
@Fireship 4 жыл бұрын
Thanks! Yeah, trying to decide if I should make them as completely separate vidoes
@Pogibakayo
@Pogibakayo 4 жыл бұрын
Fireship I’d certainly love that! But honestly, anything you put out is gold. You’re on fire.
@Ajay-ku6oq
@Ajay-ku6oq 4 жыл бұрын
@@Fireship Maybe release them simultaneously so that people who want can watch both and there is a higher chance of one going viral.
@Sunwarul
@Sunwarul 4 жыл бұрын
@@Fireship Please make this type of video with a slow pace. Your teaching style is good. but just take longer and bit slower-paced videos. Give some time to grasp the concept along. However, like these videos. Thanks!
@LineageFalcon
@LineageFalcon 4 жыл бұрын
Fireship Yeah, I think u definitively should do that. Some of your viewers want more in-depth information and with a bit more time to consume it. So I think it is a good Idea to do a 100 secs version and a in-depth version. Anyways I really appreciate your work and passion. Thank your for your vids. Have a nice day. :D
@simplyweird6369
@simplyweird6369 4 жыл бұрын
Definitely want Algorithms, Design Patterns and Data Structures 🙏
@aykborstelmann8623
@aykborstelmann8623 4 жыл бұрын
I really appreciate this format especially the combination of 100 seconds & beyond 100 seconds
@dnk1312
@dnk1312 4 жыл бұрын
Every time the outro music fades in, I can literally feel that 'i get it now' rush ! Thanks a lot and keep up the outstanding work !!
@Loopmootin
@Loopmootin 4 жыл бұрын
3:25 "go slowly and explain every step!" while going on for 10½ minutes like an absolute rap god xD Had to watch the video back to back twice and still only got half of it, but loved all of it ^^
@099watcher
@099watcher 4 жыл бұрын
That was sweet! Please create a playlist of data structures and algorithms. Great content, keep it up 👍🏻. 🔥🔥🔥
@sathishshaj7815
@sathishshaj7815 4 жыл бұрын
This video is more than worth of my three year CS degree 🔥
@daheck81
@daheck81 4 жыл бұрын
100 seconds of different time complexities as in the Big-O-Notation would be awesome. I tend to forget how they work when I haven’t dealt with them in a while (same with Regex) so I think a 100 second reminder would be perfect!
@OEThe11
@OEThe11 2 жыл бұрын
In 10 Min, I came out with a better understanding of graphs then I have in the previous attempts (which was a lot). Thanks for making graphs make sense.
@MarsTheProgrammer
@MarsTheProgrammer 4 жыл бұрын
For anyone that didn't see how you get the steps at 9:49 it's `DFS found Bangkok ${visited.size} in steps`. Use the visited size.
@TheGitGuild
@TheGitGuild 4 жыл бұрын
This is really nice. Also try making the speed 2x and watch it like 3 times if you want to overclock your brain. But it could cost you a few more seconds tho :/
@oladimejiakande9070
@oladimejiakande9070 4 жыл бұрын
😂
@mrviometal4948
@mrviometal4948 4 жыл бұрын
Make all 100 seconds videos like this, a 100 seconds explaining everything simply, then go into details...this is awesome
@CodeMonkeyG2011
@CodeMonkeyG2011 2 жыл бұрын
The format of these videos is brilliant! 100 seconds intro and then, if you want it, some practical implementation.
@hendrickmanenga9213
@hendrickmanenga9213 Жыл бұрын
Some people were really born to teach.Congrats
@golddropper2747
@golddropper2747 2 жыл бұрын
Very clear instructions. I only know Python and I completely understood your coding process with Javascript.
@AdrenalineAkash13
@AdrenalineAkash13 4 жыл бұрын
Greatest explanations i've ever seen on KZbin hats off @fireship
@darshangowda309
@darshangowda309 4 жыл бұрын
Wow! This is awesome 🙌 would love to see more of this!
@TheNewton
@TheNewton 4 жыл бұрын
5:32 Javascript destructuring in 100 seconds
@eshaan7_
@eshaan7_ 4 жыл бұрын
more like JavaScript de-structuring in 100 milliseconds.
@Brunoenribeiro
@Brunoenribeiro 4 жыл бұрын
fireship does youtube like no other channel the "basics in 100s + deep dive" format is a blast, man
@nulI_dev
@nulI_dev 4 жыл бұрын
this makes so much more sense than any CS video i've ever watched
@k3tna
@k3tna 4 жыл бұрын
You've made this one understandable enough for a person who hasn't yet got to this part of programming. Solid introduction to the topic. Didn't get everything, but the idea is very clear. Cheers!
@akam9919
@akam9919 9 ай бұрын
Got an interview in 5 min. Thx!
@rynkydynky
@rynkydynky 4 жыл бұрын
Finally somebody explaining Algortithms with Javascript Sets and Maps! Thank you.
@June_Yue
@June_Yue Жыл бұрын
Thank you!This taught me more in a few mins than my professor in hours!
@davidvideauortega287
@davidvideauortega287 4 жыл бұрын
Hellllll I loved this video. THANK YOU!!! This channel is seriously awesome. One of the best coding channels in the entire internet. ❤
@tambolaking5383
@tambolaking5383 4 жыл бұрын
Loved this. 100 seconds to grab attention and beyond for serious developers
@AiguretDuren
@AiguretDuren 4 жыл бұрын
I really enjoyed working with these data structures and algorithms in JavaScript. I would love to see more of this!
@bahgatmashaly4196
@bahgatmashaly4196 4 жыл бұрын
I needed this for my computer science class , your content is the high quality learning we all needed
@Heisenberg-xc8ub
@Heisenberg-xc8ub 4 жыл бұрын
If only I knew that Javascript was this complex before I would have paid more attention to it. I'm a backend developer and thanks to your videos I have been slowly getting better and more interested in Javascript. Awesome work as always keep up these explosive contents!
@Takuroni
@Takuroni 4 жыл бұрын
It's crazy how much I learn from your videos in such a short time. Thanks you are the best.
@lucasoliveira-xs5yh
@lucasoliveira-xs5yh Жыл бұрын
Your channel is sooooooo awesome, congratulations! One question that I have: Is the set used at the DFS function a memoization technique?
@RTshots
@RTshots 4 жыл бұрын
I didn't know I needed a fireship video about cs theory until I watched one. Plz do more
@gautamgadipudi8213
@gautamgadipudi8213 4 жыл бұрын
I can't believe I'm watching this in my leisure time. This is quality content! Keep them coming. Would love to see more algorithms explained like this. Thanks buddy, you're a rockstar! :)
@rebelmachine88
@rebelmachine88 4 жыл бұрын
I love this! Very clear explanation. I would love a mix of project videos and interview ones like this.
@opeyemijonah8530
@opeyemijonah8530 2 жыл бұрын
Bro! The way you explained this and the neatness of your codes I could grasp the Graph theory quickly. Please make a series.
@popori7928
@popori7928 4 жыл бұрын
One thing worth knowing about DFS is that while it's most commonly implemented with recursion, you can actually implement it the exact same way as BFS as shown in the video except by replacing the queue with a stack instead. After understanding it, I thought it was a bit more intuitive and easier to remember (since two birds with one stone). This is also good to know in case an interviewer asks about the potential for stack overflow.
@leaxem
@leaxem 4 жыл бұрын
This is great. Best implementation of DFS / BFS I have seen in a while. Thanks.
@mohsinejaz6882
@mohsinejaz6882 2 жыл бұрын
Fatastic .... 1 minute .... my full page is covered with expensive knowledge ..... How good you are ❤. It make me think of how much knowledge creator fed in you..... brilliant
@andylib
@andylib 4 жыл бұрын
This was amazing! Great speed, great length, great everything!
@johnnyx6654
@johnnyx6654 4 жыл бұрын
Not gonna lie, have an interview coming up and this was amazing, thanks so much for sharing the knowledge
@emmalopez5805
@emmalopez5805 2 жыл бұрын
this actually just helped me in a FANG interview, great stuff!
@samueljanda3903
@samueljanda3903 4 жыл бұрын
OMG, this video actually solved the programming problem that I am having today! Just my luck, thank you so much.
@magne6049
@magne6049 2 жыл бұрын
0:26 The notation you used actually indicates it is a bi-directional graph, meaning directions in both ways. An undirected graph would have no arrowheads (since arrows indicate direction), but simply a line.
@magne6049
@magne6049 2 жыл бұрын
@Fireship
@planetmall2
@planetmall2 4 жыл бұрын
Awesome job! Thank you. 100 seconds is great no complaints but beyond is next level!
@kevnar
@kevnar 3 жыл бұрын
I had to figure all this stuff out on my own when trying to implement A* pathfinding in a game I made. The tutorial I followed used an adjacency matrix. But my game maps were 1000 x 1000. The whole thing crashed when it tried to build the matrix. So I manually went through and converted the graph to a list structure, so only nodes with edges were stored. I guess I could have saved the whole thing to the hard disc instead of keeping the whole graph in memory at run-time, but I learned a lot fixing that problem.
@joaomelo6642
@joaomelo6642 4 жыл бұрын
i love your channel for a long time. content and form are premium. i confess i was not so engaged with 100 secs videos. seemed hushed. this approach with 100 secs as intro to something more in depth following is perfect to me. thanks for such great work.
@nebraska7891
@nebraska7891 4 жыл бұрын
This was incredible! Finally a real world example where you show the power of recursion 🙌
@Zeda_
@Zeda_ 4 жыл бұрын
This video is awesome! I love seeing these 100 second videos pop up in my feed, they’re always fantastic. One note though: an adjacency matrix does have very bad space complexity, but part of the reason for that is that it’s making the trade-off for time. It actually is quite time efficient to check specific connections [O(1)], so it just depends on what your program is prioritizing or needs.
@woodylucas
@woodylucas 3 жыл бұрын
When I say I was stressing! This just saved my life thank you.
@marshallmurray8050
@marshallmurray8050 4 жыл бұрын
Yes, I would definitely like more videos with technical interview prep focus. I'm probably a ways off of an actual interview, but it's nice to mentally prepare proactively because I'm such a good procrastinator!
@teddified3845
@teddified3845 4 жыл бұрын
This hooked me like crazy. Please do more data science and algorithm videos like this. Loved it!
@VigneshDhakshinamoorthy
@VigneshDhakshinamoorthy 4 жыл бұрын
Is it fair to say @1:25 accurately describes all of us right now? Great video by the way, cheers! Keep it coming. DONT STOP! PLS!
@ikezedev
@ikezedev 4 жыл бұрын
It is so nice knowing that you decided to use recursion instead of stack in DFS to show to show it can be down either way. Thanks a lot Jeff 😍
@PraveenKumar-ft2kr
@PraveenKumar-ft2kr 3 жыл бұрын
Amazing one.. WE need more of these :) Bring it on brother ✌
@anishkarthik4309
@anishkarthik4309 2 жыл бұрын
wow so fantastic, so fast and all necessary details/CRITICAL details are covered with real time application. This really makes me so excited to dig deeper into the topic. Keep posting more informative videos like this. And could be also attach code in the video description in popular 3 languages like python, Java, c++ along with javascript
@joaotextor4094
@joaotextor4094 Жыл бұрын
Amazing video!! Practical problems are ALWAYS better than abstract ones.
@emsourcemedia9178
@emsourcemedia9178 4 жыл бұрын
This is by far the best explanation of node.
@Endede
@Endede 4 жыл бұрын
For your BFS implementation, I think worst case time complexity ends up as O(E + V^2), because the shift() method is (probably) O(N) for N == length of the array. To achieve O(E +V) A "real" queue implementation is needed, that implements enqueue()/dequeue() in constant time.
@shubhsheth
@shubhsheth 4 жыл бұрын
Great timing, would definately love more videos like this!
@kritikkaushal6305
@kritikkaushal6305 4 жыл бұрын
straight up one of the best channels on yt
@youssefmuhamad3213
@youssefmuhamad3213 4 жыл бұрын
That was awesome, keep it up with more advanced stuff
@mangeshgupta5677
@mangeshgupta5677 4 жыл бұрын
Thanks man , I used to fear from this topics , you made so easy that any non tech guy can understand completely . God bless you 🙏
@PureAlbania
@PureAlbania 4 жыл бұрын
Wow, respect for using kms. You are on a different level. Should be paid by the firebase team for doing so much better videos than they do.
@jameshoe1750
@jameshoe1750 4 жыл бұрын
I'm on my way to the final exam in data structure, just finished my study in graph traversal and then here is your video ❤.
@s.hariharan6958
@s.hariharan6958 8 ай бұрын
you are Saviour of cs students 🙇‍♂🙇‍♂...
@ttul007
@ttul007 4 жыл бұрын
great video! quick and efficient refresher for stuff i touched 10+ years ago when i did my bachelor's. thanks :)
@thebotlist
@thebotlist 4 жыл бұрын
Thanks for taking the time to make this great video! I'm doing interview prep, like many others. There was a problem I ran into while recreating breadth first search graph traversal: the enqueue in the 'bfs' method was happening regardless if the destination was in the visited Set so I ran into an endless loop scenario. I removed that and just kept the enqueue in the 'if not visited' statement and I get the correct answer. Please forgive if I just missed some of the code in the tutorial and thanks again for the great video/succinct example!
@fidelhen6361
@fidelhen6361 4 жыл бұрын
Fireship needs to be protected at all cost. Most useful than all of my comp sci professors combined.
@wertexify
@wertexify 4 жыл бұрын
+1 for more algo/ds in JavaScrip! Amazing content.
@kevintyj
@kevintyj 3 жыл бұрын
This made more sense than the semester of data structures
@suryasarkar9681
@suryasarkar9681 4 жыл бұрын
More on graphs please. This was one of the best explanations of graph traversal on the internet ❤
@SogMosee
@SogMosee 4 жыл бұрын
This video was a majestic thing of beauty.
@Andrew-ht7rf
@Andrew-ht7rf 4 жыл бұрын
This channel and codestackr are my bibles to CS 2020
@PsHarneja
@PsHarneja 3 жыл бұрын
Every other channel: Increase the video speed to 1.25. This channel: Decrease the speed to 0.75
@arjunyonzan8557
@arjunyonzan8557 2 жыл бұрын
thank you, will be practising a lot
@trompowsky12
@trompowsky12 4 жыл бұрын
*Music in **0:00**?*
@DeAndreJohnson212
@DeAndreJohnson212 4 жыл бұрын
Yes, definitely want more data structures and algorithms videos like this! Thanks for these videos, I wish I would’ve had you as my CS Instructor 😂
@Blixzful
@Blixzful 4 жыл бұрын
Been enjoying your content for years, Jeff. Wish I had you when I studied CS :) Suggestion: Sort algorithms for DBs and why they're useful in different scenarios.
@sidheshwartiwari9834
@sidheshwartiwari9834 4 жыл бұрын
This is so interesting to learn about... Lately all I have been doing is writing layout with flex and adding event listeners .. and boii , I hate doing that..
@Sagar_RS
@Sagar_RS 4 жыл бұрын
This is awesome, please keep it going 👍 , need more of these .
@AleksandarT10
@AleksandarT10 4 жыл бұрын
Would be great to do more of these technical "intervew prep" videos. Awesome explanation! Sums up half semester of Algorithms course :D
@shauryaverma8780
@shauryaverma8780 4 жыл бұрын
Please provide us with more algorithm, data structure videos which also focus on the interview perspectives, like this video did. Love your efforts man!!! Thanks
@joshwasuresh6445
@joshwasuresh6445 2 жыл бұрын
He just solved the most difficult problem in the world 😳...
@realconect
@realconect 4 жыл бұрын
Amazing, as usual. It’d be awesome if you created a full course on algos. Thanks! 😃
@jannotabamo4002
@jannotabamo4002 4 жыл бұрын
Thank you so much for sharing very high quality contents!! More CS topics pleaseee :)
@tygobolink5743
@tygobolink5743 4 жыл бұрын
It feels so bad that you upload this video right now. It's a great video and in explains the problems clear. But for a school assignment I had to Depth First Search a specific list of nodes and links. I did need a couple of hours to figure out how to this works. I nailed it but not as clean as you explained the problem and the solution. Thanks for the great video's you make!
@geo9115
@geo9115 4 жыл бұрын
I wish it didn't take my data structures professor 3 weeks to explain this concept. Thanks for the 100 second rundown!
@legendaryseoking6685
@legendaryseoking6685 2 жыл бұрын
dam this is so much more helpful than the leetcode graph card, thank you so much!
@ayushmanbt
@ayushmanbt 4 жыл бұрын
Sure this is awesome❤️ we definitely need more of these
@10xGarden
@10xGarden 4 жыл бұрын
At least it will help us cracking the coding interview
@de-codr8814
@de-codr8814 3 жыл бұрын
Make more such videos like using some development related use cases where this algorithms can implemented , everyone will love them as the you breakdown the problem into subproblem is awesome.👍👍👍👍😁
@stith_pragya
@stith_pragya Жыл бұрын
Thank You So Much for this wonderful video...🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
@JudoboyAlex
@JudoboyAlex 4 жыл бұрын
Most algorithms and data structure courses are either in java or python. Rarely see one in javascript. We need more video like this for JS community.
@nero-kun-here
@nero-kun-here 4 жыл бұрын
Very good quality content! I love it! need more videos like this....
@bmejia220
@bmejia220 3 жыл бұрын
Wow brilliant tutorial man brilliant lesson thanks so much learning so much here
Deno in 100 Seconds
2:10
Fireship
Рет қаралды 527 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
how good is two triboulet??
32:27
BestGuyEver777
Рет қаралды 856
The amazing, but unsettling future of technology...
9:10
Fireship
Рет қаралды 1,1 МЛН
3 Types of Algorithms Every Programmer Needs to Know
13:12
ForrestKnight
Рет қаралды 517 М.
WebSockets in 100 Seconds & Beyond with Socket.io
8:31
Fireship
Рет қаралды 1 МЛН
Graph Algorithms for Technical Interviews - Full Course
2:12:19
freeCodeCamp.org
Рет қаралды 1,2 МЛН
The JavaScript Survival Guide
14:47
Fireship
Рет қаралды 738 М.
Top 5 Most Common Graph Algorithms for Coding Interviews
13:01
8 Data Structures Every Programmer Should Know
17:09
ForrestKnight
Рет қаралды 232 М.