Rotting Oranges | Directional Arrays & BFS | LeetCode

  Рет қаралды 4,916

AlgosWithMichael

AlgosWithMichael

Күн бұрын

Пікірлер: 13
@iameenr
@iameenr 2 жыл бұрын
Micheal, you are literally the most underrated creator I know now. Keep up this amazing work. And your code quality is Kick Ass. 🔥
@AlgosWithMichael
@AlgosWithMichael 2 жыл бұрын
Haha thanks so much, I appreciate it!
@micosair
@micosair 2 жыл бұрын
Nice trick to store i,j in a single variable.Thanks for sharing.
@AlgosWithMichael
@AlgosWithMichael 2 жыл бұрын
No problem!
@vivek.tiwary
@vivek.tiwary 2 жыл бұрын
As always, best explanation. Best part, how to approach this kind of problem, no one talks about intuition except you. Thank you
@TheElementFive
@TheElementFive 2 жыл бұрын
Couldn’t have been explained or visualized more effectively!
@yunyixu5994
@yunyixu5994 10 ай бұрын
So underrated!!!💯 Thank you for your work!
@yaboyspence
@yaboyspence 2 жыл бұрын
Could the if-check (lines 19-21) be included in the top for loops? Just curious why we need to iterate the grid twice?
@odrare
@odrare 10 ай бұрын
Man, that's amazing, thank you
@odrare
@odrare 10 ай бұрын
also we can write this for(int i = 0; i < m; i++) { for(int j = 0; j < n; j++) { if(grid[i][j] == 1) { ++freshOranges; } else if(grid[i][j] == 2) { queue.add(i * n + j); } } }
@kavyak.p8878
@kavyak.p8878 2 жыл бұрын
Could you please make a video on Leetcode 753. Cracking the safe. It’s a hard problem
@prithvirajrathore4256
@prithvirajrathore4256 2 жыл бұрын
Congrats for Google bro🎉🎉 . I also want to switch my current job to google . Can you help by covering the topics which google developers ask most.
@dvfrost6227
@dvfrost6227 7 ай бұрын
Unable to pass all the testcases on Leetcode
Solving Meta's 2024 Most Asked Interview Question
13:45
AlgosWithMichael
Рет қаралды 2,5 М.
Surrounded Regions | BFS & DFS | LeetCode
19:42
AlgosWithMichael
Рет қаралды 5 М.
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4,5 МЛН
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 10 МЛН
Rotting Oranges - Leetcode 994 - Python
12:19
NeetCode
Рет қаралды 111 М.
Minimum Window Substring | Sliding Window | LeetCode
18:00
AlgosWithMichael
Рет қаралды 40 М.
G-10. Rotten Oranges | C++ | Java
22:30
take U forward
Рет қаралды 342 М.
you will never ask about pointers again after watching this video
8:03
Rotting Oranges - Leetcode 994 - Graphs (Python)
16:09
Greg Hogg
Рет қаралды 3,4 М.
Mastering Dynamic Programming - How to solve any interview problem (Part 1)
19:41
Longest Increasing Path in a Matrix (DFS + Memoization)
18:47
AlgosWithMichael
Рет қаралды 19 М.
Coding Unbreakable Encryption in C | One-Time Pad
17:42
HirschDaniel
Рет қаралды 4,4 М.
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 197 М.
Coding Interview Prep | 3 MUST KNOW Graph Problem Tips
13:27
AlgosWithMichael
Рет қаралды 18 М.