No video

787. Cheapest Flights Within K Stops | Dijkstras | BFS | Complete Internal Working

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

Aryan Mittal

Aryan Mittal

Күн бұрын

Пікірлер: 29
@ARYANMITTAL
@ARYANMITTAL 6 ай бұрын
Sorry guys, video is a bit late today, it took some time to make notes for this one 🫡📝!!
@harshal8781
@harshal8781 6 ай бұрын
Kaar diya maaf 😅
@rajrajesh1669
@rajrajesh1669 6 ай бұрын
It's alright bro, we are always grateful for your work and contribution to the coding community...
@ARYANMITTAL
@ARYANMITTAL 6 ай бұрын
😂😂
@ARYANMITTAL
@ARYANMITTAL 6 ай бұрын
🫂🫂
@rajrajesh1669
@rajrajesh1669 6 ай бұрын
Man, There's no way this problem can actually be solved using dijkstra's algo😢... Such a beautiful explanation as gulab jamun for the dijkstra's algo approach. Thanks a lot... My only qtn rn is How did you came up with this solution bro?😂
@ARYANMITTAL
@ARYANMITTAL 6 ай бұрын
Glad you loved Rajesh ❤️❤️
@nikhilbabar2226
@nikhilbabar2226 6 ай бұрын
Great video !, one approach which I tried was dfs + dp
@gigachad2419
@gigachad2419 Ай бұрын
TLE?
@ankitraheja9524
@ankitraheja9524 Ай бұрын
What is the advantage of using PQ? Queue should have been enough. I ran the same program with PQ as well as Queue, did not find any difference in runtime. Can u please elaborate in this particular question what advantage PQ has brought? Thanks in Advance!!
@shashanksingh3008
@shashanksingh3008 2 ай бұрын
Dem how do you always know what I am gonna try and explain the correct way to overcome the problems i encountered after hours of head banging.
@ABHAYKUMAR-kt3ug
@ABHAYKUMAR-kt3ug 6 ай бұрын
Aap pehle ki tarah video vale notes ki pdf description me daal diya karo plz
@surajshekhar17
@surajshekhar17 6 ай бұрын
8:49
@ARYANMITTAL
@ARYANMITTAL 6 ай бұрын
💀💀🌚😂
@hrithikkumar7974
@hrithikkumar7974 6 ай бұрын
why is the time complexity of bfs solution O(n+e.k)? if n=99 and k=100 then every node can be visited 2^(flights.size()) time right?
@fraserdab
@fraserdab 6 ай бұрын
If u said "smash the like button" at 35:40 then the like button would've glown, just a fun thing, thanks for the video
@ARYANMITTAL
@ARYANMITTAL 6 ай бұрын
Uff esaaa 🫠🫠❤️
@varadv3
@varadv3 6 ай бұрын
8:50 "maksad nahi bhulna guys" 🤣
@Anonymous-lb6mc
@Anonymous-lb6mc 6 ай бұрын
Great !! Thanks man!!
@ARYANMITTAL
@ARYANMITTAL 6 ай бұрын
❤️❤️🤌🏻🫂
@sumitrajan9030
@sumitrajan9030 6 ай бұрын
No problem bro 🤜
@ARYANMITTAL
@ARYANMITTAL 6 ай бұрын
🫡🫡🫂
@krishnasharma657
@krishnasharma657 6 ай бұрын
Dijkstra gives tle 😅
@chickukoshti3741
@chickukoshti3741 6 ай бұрын
not getting
@gourabchatterjee1778
@gourabchatterjee1778 6 ай бұрын
Just to mention your dijkstra's code is wrong..We cannot return distance when node==dst inside the loop....You messed up dijkstra's and bfs together
@ARYANMITTAL
@ARYANMITTAL 6 ай бұрын
Bro, I mentioned in video 6 times how it works, still you have a comment like this 🫠, and then people say, why i repeat stuff 🤣
@gourabchatterjee1778
@gourabchatterjee1778 6 ай бұрын
@@ARYANMITTAL Well you can actually repeat it for the 7th time but the code would still be wrong
@AkashKumar-bm4py
@AkashKumar-bm4py 6 ай бұрын
@@ARYANMITTAL Bro but it will search for other possible solutions as well ,which might be more optimum solution. In the example you just explored one path .
@shashanksingh3008
@shashanksingh3008 2 ай бұрын
@@gourabchatterjee1778 bro the code is completely right !! You can definitely return the distance because priority queue would have already set the lowest distance and lowest step which we actually want.
Cute kitty gadgets 💛
00:24
TheSoul Music Family
Рет қаралды 21 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 8 МЛН
Coding Interview | Software Engineer @ Bloomberg (Part 1)
30:05
Keep On Coding
Рет қаралды 4,6 МЛН
Cheapest Flights Within K Stops | LeetCode 787 | C++, Java, Python
26:24
Knowledge Center
Рет қаралды 13 М.
❌ Don't Run Behind 500 LEETCODE Problems ❌ Focus on QPCD
8:31
Cheapest Flights Within K Stops | Graph | [CODE + Explaination] | Amazon | GFG 🔥
22:25
Yogesh & Shailesh (CodeLibrary)
Рет қаралды 14 М.
Enter The Arena: Simplifying Memory Management (2023)
1:47:50
Ryan Fleury
Рет қаралды 37 М.
Google Coding Interview With A High School Student
57:24
Clément Mihailescu
Рет қаралды 4,1 МЛН