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?😂
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!!
@@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 .
@@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.
Sorry guys, video is a bit late today, it took some time to make notes for this one 🫡📝!!
Kaar diya maaf 😅
It's alright bro, we are always grateful for your work and contribution to the coding community...
😂😂
🫂🫂
Great video !, one approach which I tried was dfs + dp
TLE?
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?😂
Glad you loved Rajesh ❤️❤️
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.
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
Uff esaaa 🫠🫠❤️
Aap pehle ki tarah video vale notes ki pdf description me daal diya karo plz
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!!
8:50 "maksad nahi bhulna guys" 🤣
8:49
💀💀🌚😂
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?
Great !! Thanks man!!
❤️❤️🤌🏻🫂
No problem bro 🤜
🫡🫡🫂
This problem is too tough for me :(
not getting
Dijkstra gives tle 😅
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
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 🤣
@@ARYANMITTAL Well you can actually repeat it for the 7th time but the code would still be wrong
@@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 .
@@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.