Thank you for Explaining it in Crystal Clear Manner! 👍
@AlgorithmsMadeEasy Жыл бұрын
Glad it was helpful!
@BruceyBit Жыл бұрын
Great explanation! The graphics are extremely helpful!❤
@AlgorithmsMadeEasy Жыл бұрын
Glad it was helpful!
@praveenugiri2 жыл бұрын
Good Intuition, thanks
@AlgorithmsMadeEasy Жыл бұрын
You are so welcome
@shravsidol Жыл бұрын
Great Explanation!
@pradiptalekar75453 жыл бұрын
Good one. Easy to understand and easy to implement. Thanks for sharing!!
@shraddhashah7312 Жыл бұрын
Excellent explanation. Thank you👏
@hiss302 жыл бұрын
Thank you,I found this very helpful😊
@AlgorithmsMadeEasy Жыл бұрын
Glad it was helpful!
@utkarshsharma11852 жыл бұрын
thanks, mam your memoization approach is excellent and very intuitive compared to other methods like storing the count of k in the visited array to decide whether we should traverse this cell or not.
@AlgorithmsMadeEasy Жыл бұрын
Most welcome 😊
@chetan_bommu2 жыл бұрын
Very clean & crisp explanation 👏
@AlgorithmsMadeEasy2 жыл бұрын
Thanks!! Do share like and subscribe!!
@raushankumar69932 жыл бұрын
great explaination
@AlgorithmsMadeEasy Жыл бұрын
Glad you enjoyed it!
@tung-hsinliu8612 жыл бұрын
easy to understand explanation :)
@AlgorithmsMadeEasy Жыл бұрын
Glad you enjoyed it!
@gauranshverma59623 жыл бұрын
great explanation and effort
@jaideeppyne18802 жыл бұрын
Well explained with pictures!
@AlgorithmsMadeEasy2 жыл бұрын
Glad it was helpful! Don't forget to share and subscribe!!
@vaibhavaren32173 жыл бұрын
Awesomely expalined. Thanks a ton :D :D
@AlgorithmsMadeEasy2 жыл бұрын
Glad it helped! Most welcome!! Don't forget to subscribe!!! :)
@krishnaveerakishoremuppana91893 жыл бұрын
Thanks for the visualization :)
@manasawalaaamir2 жыл бұрын
great explanation
@rjkal2 жыл бұрын
Very good explanation, better than most I've seen for this problem. I have one question - how do you know when to increment the step? I am trying to understand how you determine that? Also you mentioned for the 3D array it is [i, j, k+1]. Why k + 1? Please help me understand.
@muhammadrehanalikhan14532 жыл бұрын
Q "how do you know when to increment the step?" look at the inner while loop "while(size-- > 0) { }" you just need to count how many times this while loop is been called. First Call: the 'while loop' will process cell (0,0) and terminate Second Call: the 'while loop' will process all cells ONE step away from (0,0) Third Call: the loop will process all cells TWO steps away from (0,0).......AND SO ON that means number of while loop calls == number of steps taken. That is why she is incrementing step outside the end of this inner while loop. Q "Also you mentioned for the 3D array it is [i, j, k+1]. Why k + 1?" we are using k as one of the index of the visited array. An array of size == k has max index of k - 1. So we make the size == k + 1 so the max index is k. I hope this helps.
@rjkal2 жыл бұрын
@@muhammadrehanalikhan1453 Thank you so much for the detailed explanation! That cleared my doubt. It is really helpful.
@tusharnain66522 жыл бұрын
Can't thank you enough.
@AlgorithmsMadeEasy Жыл бұрын
Glad you enjoyed it!
@rahatsshowcase86142 жыл бұрын
very nice
@prasenjit_dutta3 жыл бұрын
Thankyou !!
@khawla25833 жыл бұрын
Thank you for the video, would you provide us with explanation on how to print the coordinates of the shortest path ?
@venkatasriharsha42273 жыл бұрын
I love the way u explain things. I don't know much about Java but I can clearly code it in python after seeing your explanation. Keep it up. You need more subscribers 😔 They're missing alot. I'll recommend it to my frnds from my side as a small gratitude. Make videos as frequently as possible 🙂
@himanshunegi52283 жыл бұрын
crystal clear
@noobCoder262 жыл бұрын
can i take vis[m][n ] instead of vis[m][n][k]? I didnt get the point of 3d array ie K
@anilkatakam27383 жыл бұрын
time limit exceeding
@jainamshah3691 Жыл бұрын
When i am optimizing more by using distance matrix, why its giving wrong answer I am not able to understand that can you please explain I am using distance matrix like if the neighbour distance is already less than 1 + steps then i will not push it to the queue
@kartikeykhosla87373 жыл бұрын
One video on leetcode 73, ur's explanations are easy to understand
@AlgorithmsMadeEasy2 жыл бұрын
Surely we will try to create a video on that... Keep sharing problems you wish to see videos on.
@amruthaj42627 ай бұрын
Why should we take k+1 not just 'k' in the visited array? The code doesn't work if it's just k....I didn't understand this. Please explain.
@atharvakulkarni30073 жыл бұрын
mistake at 9:23 you've used 2,0 but on visualization you are on 0,2
@giangkhuat93433 жыл бұрын
hey does anyone know why we don't need to take into account the distance(number of steps) when checking if the current cell is visited ? we only need three elements ?
@adarshkesarwani33842 жыл бұрын
we are just interested in finding weather a particular cell is visited or not, how does it even matter at what step a particular cell got visited, we just if it is visited or not irrespective of steps count.
@saunaknandi18142 жыл бұрын
I used 3D - DP but its not working and giving stack overflow but why?
@sarthakkumar8562 жыл бұрын
I have also used 3D-DP using recusion but I am getting wrong answer on 46th test case.
@shashanksingh47082 жыл бұрын
is this multi source bfs ?
@raj25232 жыл бұрын
Nope
@shubamgoswami2 жыл бұрын
study material folder💦
@yalslaus2 жыл бұрын
9:30 is wrong. you should be at (2,0)
@budsyremo2 жыл бұрын
Can there be a scenario where there are two paths and one path is longer ? And if so what if the longer path shws up first ?
@avinashchoubey33942 жыл бұрын
longer path can never show up first in BFS. BFS traverses with one length increment in path so the shorter path is always processed first
@sakshimishra14912 жыл бұрын
not optimized. optimize before uploading it on youtube. don't dump anything and everything.