Just with the help of the part where you said we can include all the rotten oranges in the queue right from start, I was able to solve the whole problem. Thanks.
Thanks for this, earlier I didn't understand the code explanation by NeetCode but then I watched yours it made sense and the way you explain the code after writing it makes me think that you are backtracking hehe
What is the reason to use another for loop on 23 line? You have already have while q: ... I think you do not need this loop and q_size var, is not it? You just popleft element and make 25 line loop without 23 line
Master Data Structures & Algorithms For FREE at AlgoMap.io!
Just with the help of the part where you said we can include all the rotten oranges in the queue right from start, I was able to solve the whole problem. Thanks.
Hi Greg, thank you for all the efforts in explaining and coding the solutions which have helped me learn. All the Best!👍
Wow! Thank you so much! That's so nice of you :) 🥰
Thanks for this, earlier I didn't understand the code explanation by NeetCode but then I watched yours it made sense and the way you explain the code after writing it makes me think that you are backtracking hehe
What is the name of the paint tool you are using? I need it to practice
he use miro
very well explained! (I appreciate particularly the clear illustration 😍
Thank you for the great explanation. It would have been helpful to analyze a more complex example, like 2 rotten oranges as input, instead of 1.
What is the reason to use another for loop on 23 line? You have already have while q: ... I think you do not need this loop and q_size var, is not it? You just popleft element and make 25 line loop without 23 line
Then how would you organize it by rounds?
Got you! Thank you for video and answer to my question. I’ve forgotten about minutes we need :))
@@ПавелКуликов-ж9н You're very welcome :)
Hello sir. Sir I am not good at maths so can I learn and practice dsa and actually become good at it??
Yeah you don't really need math
@@GregHogg thank you sir I just really want to become like you in dsa
Bro how you calculate minute
Why you set minutes = -1 and what is q_size, just not use len q alone bro, I don't understand 😣😣
Because the size of the queue will constantly be changing, by capturing the size in the variable you can make sure you only process the neighbors