Rotting Oranges | Directional Arrays & BFS | LeetCode

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

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 9 ай бұрын
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 М.
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 51 МЛН
Minimum Window Substring | Sliding Window | LeetCode
18:00
AlgosWithMichael
Рет қаралды 40 М.
Rotting Oranges - Leetcode 994 - Graphs (Python)
16:09
Greg Hogg
Рет қаралды 3,4 М.
Longest Increasing Path in a Matrix (DFS + Memoization)
18:47
AlgosWithMichael
Рет қаралды 19 М.
G-10. Rotten Oranges | C++ | Java
22:30
take U forward
Рет қаралды 342 М.
Word Ladder | Breadth First Search (LeetCode)
15:08
AlgosWithMichael
Рет қаралды 14 М.
5 Simple Steps for Solving Any Recursive Problem
21:03
Reducible
Рет қаралды 1,2 МЛН
Google Coding Interview Question - Number of Closed Islands (LeetCode)
21:03
Rotting Oranges - Leetcode 994 - Python
12:19
NeetCode
Рет қаралды 111 М.
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 197 М.
Google Coding Question - Making a Large Island (Hard)
25:11
AlgosWithMichael
Рет қаралды 16 М.
Players push long pins through a cardboard box attempting to pop the balloon!
00:31