actually bonus has been asked in my interview round of algouniversity so it should be in important one and dijkstra is very much common and asked in interview
@shreddingstuff3 жыл бұрын
Dude I sincerely can't thank you enough. I'm studying for job interviews and your content is the only reason I feel semi-confident going into them
@jay-rathod-013 жыл бұрын
semi confident lmfao.btw ALL THE BEST.
@reeshikasingh56153 жыл бұрын
Lol I feel you, thank you @NeetCode
@angrycat-ze2 жыл бұрын
I make these words my own.
@dragoshtoader6062 Жыл бұрын
Did you get the interview?
@technicallytechnical13 ай бұрын
bro did you land in a job ?
@UnspokenThings2 жыл бұрын
Ur playlist is the reason I feel confident with Graph questions. Thanks Man!!
@technicalspot1848 Жыл бұрын
Hey i know bfs ,dfs topo,dijkstra but don't know Floyd warshall prim kruksal right now should i could follow neetcode graph playlists i am tired of just learning new algos i want to solve question to particular these algos after solving some questions i will move to others algos could you guide ?
@runfunmc642 жыл бұрын
i think it’s pronounced dye-kstras algorithm btw
@MundoTecChannel Жыл бұрын
🤓☝️
@rohitkumar-el9vi10 ай бұрын
Witcher 3 also has a character named dijkstra.
@gnes049 ай бұрын
Dyke straw lol
@AMX00133 ай бұрын
Yea and they pronounce him dee 'k stra. After playing it, i always called it that calling others pronunciation as uncouth
@bombrman1994Ай бұрын
Yup he was from Netherlands It’s d
@juda5503 жыл бұрын
The time complexity of graph traversals is actually O(V + E), where V is the number of nodes, and E is the number of edges. Graph traversals are only (n) when the graph is a tree with a fixed amount of children(like a binary tree)
@anonymoussloth66873 жыл бұрын
Can u explain how it is V+E in detail?
@juda5503 жыл бұрын
@@anonymoussloth6687 Hey sorry for responding kind of late, but think of the graph as an adjacency list/hash-map. If you want to traverse the entire graph, you need to traverse each key(vertex) and every value (edge). Therefore, the time complexity is O(V + E)
@simonchristian1602 жыл бұрын
JUDA FROM CSCAREERSDEV?
@juda5502 жыл бұрын
@@simonchristian160 yessir
@amirnasser776810 ай бұрын
Thanks for the informative videos. Just a small correction about the time complexity of DFS and BFS: it is not O(V) where V is the number of nodes, but O(V+E), where you should consider the edges as well.
@gamerclips88952 жыл бұрын
The algorithms were created for optimizing software, deliver efficient solutions, but nowadays most of the companies use them to filter out candidates in job interviews and look cool🤦🏽♀️, once you get into the company you probably are not going to hear about that never again
@GabrielAgoncillo-vn9qe Жыл бұрын
This is 100% correct.
@ramvenkatachalam81536 ай бұрын
Only bez of Ur playlist is the reason i think i will get a good job . absolutely wonderful videos on DSA . I lov u bro.
@yang58433 жыл бұрын
Just fyi, the Di in Dijkstra is pronounced like Di in Dice Thanks for the video
@CST19928 ай бұрын
Witcher 3 players would know
@tahichy91692 жыл бұрын
Its really helpful that you categorize every problem and made a separate folder
@mohithadiyal60833 жыл бұрын
It's a remainder that you are doing amazing 😁👍🏻
@ChristopherLoverich2 жыл бұрын
Topological sort is IMHO less obscure than Union Find or Dijsktra's. The latter are more well known by name because they are illustrative for didactics, e.g. Union Find is the first major algorithm introduced in Sedgewick's book as a case study, before returning to a more orderly review of algorithms. Topological sort is, conversely, is an extenstion to a wide variety of well known practical problems like ordering a course schedule or execution of project or (automated) job dependencies. Cracking the Code Interview even argues you should be able to derive it on the spot if you didn't know it (I disagree but shrug). Its a minor point but I think people might see it and think they should study it last, where as IMHO its more expected knowledge than Dijkstra's and also really easy to understand once you've done a few DFS problems!
@musilicks2 жыл бұрын
damn bro you really are just talkin. Power to u brudder
@praveenmishra24703 жыл бұрын
One of the best interview preparation channel
@aaen9417 Жыл бұрын
this content is gold, man
@abdoulbarry81112 жыл бұрын
Why isn't Top Sort BFS since it looks like you are doing level order traversal?
@SteversIO5 ай бұрын
BFS + topological sort is more complex but feels more intuitive (to me). There's more code as you need to manage "in degrees" (the number of incoming edges to a node) and you need a queue (common in BFS).
@heen1211 Жыл бұрын
Because of your content..I feel confident while giving interview...huge respect❤
@anonymoussloth66873 жыл бұрын
Shouldnt topological sort use bfs? Since we would have to print all nodes that are at the same level or depth before going further?
@NeetCode3 жыл бұрын
Yeah you're right, I think most people do bfs, but I usually do it dfs which is more simple imo (I used dfs for the alien dictionary problem)
@adnanelouadghiri6880 Жыл бұрын
We need a video for LeetCode 1319!
@amitvyas79052 жыл бұрын
At 5:22 you say "which is how I was taught" so could you let us know who taught you and how you started to come up with these approaches to solve all these problems?
@krige2 жыл бұрын
7:33 isn't topological sort actually identical to BFS?
@kyriakoskourkoulis11592 жыл бұрын
Yeah that's what I think as well🤔
@fsouza2 жыл бұрын
In that case yes, but because he picked a bad example.
@technicalspot1848 Жыл бұрын
Topo could be extended by both dfs and bfs(also called as khan's algo)
@reginafadeeva78812 жыл бұрын
You are the best! Thank you soooo much)
@edgarcamelo34722 жыл бұрын
What about Bellman Ford or Floyd Warshall Algo
@a2xd94 Жыл бұрын
Great set of problems! Are the problems sorted in order of importance/frequency encountered (IE DFS most important/frequent, Djikstra's algo least important/frequent)?
@harryz79733 жыл бұрын
would highly appreciate if you can solve 636. Exclusive Time of Functions
@ramesh_hegde2 жыл бұрын
hello everyone,, lets write some neetcode today.
@zifanxu5223 жыл бұрын
Nice topic! Thanks
@technicalspot1848 Жыл бұрын
I know bfs ,dfs,topo sort dijkasta and uninon find little bit too should i start solving questions ?
@tirupatirao75212 жыл бұрын
Why so less subscribers dnt know
@impatientgaming986811 ай бұрын
Good One.
@pranavsharma74792 жыл бұрын
upload more videos on graphs sir
@daydrivver20742 жыл бұрын
You mention a lot hashset is there any video recommended to learn about that data structure? Most focus on implementation
@hackytech74943 жыл бұрын
Thankyou so much
@kotsios19982 жыл бұрын
time complexity of dfs isn't O(V+E)?
@admirer.of.cinema9731 Жыл бұрын
Hi can any one help me here, I used to be python coder but got laid off in April and now I want to switch into more development side I am doing dsa only for sometime what other skill should i focus on
@hpj19922 жыл бұрын
What about bellman ford's algo? Not so common?
@CEOofTheHood3 жыл бұрын
LEGEND!!!
@tooovisibletosee Жыл бұрын
Does topological sort use dfs or bfs? From explanation it’s describing bfs 😮
@tooovisibletosee Жыл бұрын
@neetcode
@neilmehra_8 ай бұрын
You can implement topo sort either way, doesn't really matter. Either use BFS, "remove" edges by subtracting indegrees on vertices and add when indeg[u] = 0, or just build the DFS tree.
@IYI_WOLF_IYI2 жыл бұрын
shouldn't topological sort be BFS and not DFS? (minor error?)
@neilmehra_8 ай бұрын
You can implement topo sort either way, doesn't really matter. Either use BFS, "remove" edges by subtracting indegrees on vertices and add when indeg[u] = 0, or just build the DFS tree.
@shankar74353 ай бұрын
Dijkstra in school??? Noway...😂😂😂
@sh-oj8ei7 күн бұрын
no one traverses my lair except me
@ExamSolutions_et2 жыл бұрын
thank you . and I would like to see your face
@huizhao20502 жыл бұрын
Hello, for the generic DFS method, should we use void or returning something?