Rotting Oranges Leetcode solution | BFS ✅ Graph Explained Hindi | Complete Graph Playlist

  Рет қаралды 13,861

Hello World

Hello World

Күн бұрын

This is the video under the series of DATA STRUCTURE & ALGORITHM in a GRAPH Playlist. Now we are going to solve the Rotting Oranges | Graph series
Join My Telegram channel for more Updates: telegram.me/he...
complete DSA preparation: github.com/Pri...
----------------------------------------------------------------------------------------
Rotting Oranges: leetcode.com/p...
code in this video: github.com/Pri...
----------------------------------------------------------------------------------------
*Follow me *
LinkedIn► / iamprince
Facebook► / helloworldofficials
Instagram► / helloworldbyprince
Twitter► / prince_king_
Telegram► telegram.me/he...
----------------------------------------------------------------------------------------
►Our Playlists on:-
► Tree: • Tree Data Structure & ...
► Hashing: • Hashing Data Structure...
► Graph: • Graph Data Structure &...
► Matrix: • Matrix (Multidimension...
► STL: • Standard Template Libr...
► Leetcode: • LeetCode Solutions And...
►Competitive Programming: • Full course in Competi...
►C++ Full Course : • C++ full Course in HINDI
►Algorithms: • L-01 || Prefix Sum Arr...
►Data Structure: • Data Structures with C...
------------------------------------------------------------------------
🌟 Please leave a LIKE ❤️ and SUBSCRIBE for more AMAZING content! 🌟
✨ Tags ✨
Introduction to the graph data structure
Graph playlist Hello world
Shortest Path in Unweighted Graph
Print all paths from a given source to a destination
Depth First Search
Graph hello world
Types of graphs in Data structure & algorithms
DFS Graph
playlist Graph Hindi
Max Area of Island
Maximum Area of Island
question asked in Google
off-campus placement
how to learn to code for beginners
Practice Tree data structure
Unit Area of the largest region of 1's
The graph in a data structure in Hindi
Graph Full playlist for Beginners
algorithms
graph
Find the length of the largest region
data structure
sorting algorithms
algorithm analysis
Rotting Oranges
gate computer science preparation
programming languages
#Graph #Leetcode #programming

Пікірлер: 88
@sajidawan7804
@sajidawan7804 2 жыл бұрын
ur way of explanation is ooooooooooooooooooooossssmmmmm!!!!!!!
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
Thanks a lot sajid
@anmolshrivastava6685
@anmolshrivastava6685 2 жыл бұрын
Actually we don't need the last loop to check if fresh oranges are left. when oranges are rotting inside the while(q is not empty) loop we can just decrease fresh and check at the end if fresh==0 if 0 return time else return -1 int orangesRotting(vector& grid) { int t=0; int num=0; queueq; for(int i=0;i
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
Amazing 🔥
@bhumithakur9967
@bhumithakur9967 Жыл бұрын
Bhaiya why are we using 2 nested while loops. I think this can be done in one as well.
@Ravikumar-vm1pp
@Ravikumar-vm1pp 2 жыл бұрын
Great work bhaiya, hope ur video will be in trending soon❤️
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
I wish the same bro
@reenugupta8186
@reenugupta8186 Жыл бұрын
I always felt so much fear from Graph . Your playlist is very good . Please make more vides on other topics also
@HelloWorldbyprince
@HelloWorldbyprince Жыл бұрын
Sure I will
@VishalKumar-ce9pe
@VishalKumar-ce9pe 2 жыл бұрын
--------------------------------------------------------CODE------------------------------------------------------ class Solution { public: bool isValid(int i, int j, int m, int n, vector& grid) { if(i>=0 && i=0 && j
@HelloWorldbyprince
@HelloWorldbyprince Жыл бұрын
good work Vishal
@VishalKumar-ce9pe
@VishalKumar-ce9pe Жыл бұрын
@@HelloWorldbyprince Thank u bhaiya...keep doing it.
@_AdityaJhunjhunwala
@_AdityaJhunjhunwala Жыл бұрын
Bhaiya solved this problem without watching ur video🤗....ThankYou bhaiya for this great playlist💯
@HelloWorldbyprince
@HelloWorldbyprince Жыл бұрын
Most welcome 😊
@shubhampawar456
@shubhampawar456 2 жыл бұрын
bhiya actually can we say that we are counting the maximum height in a graph with multiple number of entry point
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
yes u right
@aniketkumar2502
@aniketkumar2502 Жыл бұрын
Pura clear crystal sir mza aa gya...👏👏👏
@aniketkumar2502
@aniketkumar2502 Жыл бұрын
Fantastic sir
@HelloWorldbyprince
@HelloWorldbyprince Жыл бұрын
waoo good job
@Biswajit_Sahoo1
@Biswajit_Sahoo1 7 ай бұрын
Bhaiya sab kuch samajh me aaya but wo time minimum time kaise hua samajh mein nahi aaya...
@gauravparasar4571
@gauravparasar4571 Жыл бұрын
4:03 kuki ye apne adjecent ko rott krr rha h islie ...... mene aage dekhi nahi usse pehle krra hu to batan shi h ???
@HelloWorldbyprince
@HelloWorldbyprince Жыл бұрын
shi hai
@amanpandey4550
@amanpandey4550 2 жыл бұрын
Great explanation, understood everything
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
Amazing brother
@sudhadevi6692
@sudhadevi6692 Жыл бұрын
Able to do it by myself bhaiya❤
@HelloWorldbyprince
@HelloWorldbyprince 11 ай бұрын
nice yaar
@Dark-ch2zp
@Dark-ch2zp Жыл бұрын
can anybody tell me why we are using double while loop here 🤔🤔
@anitajain8567
@anitajain8567 2 жыл бұрын
Great Explanation ❤️
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
Thank you! 🙂
@sahilkrshah6399
@sahilkrshah6399 Жыл бұрын
ThankYou
@HelloWorldbyprince
@HelloWorldbyprince Жыл бұрын
You're welcome
@santoshrredder2013
@santoshrredder2013 Жыл бұрын
Best explanation
@TarunKumar-cn6in
@TarunKumar-cn6in 2 жыл бұрын
nice explained
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
Thanks for the support 😊
@ishajain7879
@ishajain7879 2 жыл бұрын
clean and crisp explaination ,thnks
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
Thanks, Isha, so nice of u Please, if possible then share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀
@motormaza_riders
@motormaza_riders 2 жыл бұрын
Hi bhaiya Why have you used 2 while loops in bfs? The first one is till the queue becomes empty and the second one is also for the same I guess. Pls help
@JEMohammadAtif
@JEMohammadAtif 2 жыл бұрын
great help for us bro
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
It's my pleasure Please, share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀
@himanshusahu6879
@himanshusahu6879 11 ай бұрын
nice
@HelloWorldbyprince
@HelloWorldbyprince 11 ай бұрын
Thanks a lot
@thesaurabh62057
@thesaurabh62057 2 жыл бұрын
thanks sir
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
So nice of you
@prajwalmanojkumargawai6298
@prajwalmanojkumargawai6298 Жыл бұрын
🤩
@Deep_880er
@Deep_880er 2 жыл бұрын
log concept dekh ke isliye chale jate hai kyuki unko khud se try krna hota hai code krna.. mai bhi yahi krta hun mai try krta hu ki khud se code likh payu.
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
Amazing bro ...keep learning
@ajupradhan1126
@ajupradhan1126 Жыл бұрын
Bhaiya achha nahi bahut achha laga
@urvishrupareliya8210
@urvishrupareliya8210 2 жыл бұрын
gre88👍
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
Thanks Please, if possible then share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀
@ZuisineZiyi
@ZuisineZiyi Жыл бұрын
BFS
@HelloWorldbyprince
@HelloWorldbyprince Жыл бұрын
Nice
@2Deadly_
@2Deadly_ Жыл бұрын
bfs
@HelloWorldbyprince
@HelloWorldbyprince Жыл бұрын
thanks a lot
@Entertainmentandexplore
@Entertainmentandexplore Жыл бұрын
Bfs
@HelloWorldbyprince
@HelloWorldbyprince Жыл бұрын
yup
@oqant0424
@oqant0424 2 жыл бұрын
24/32 done
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
Good bro
@bhumithakur9967
@bhumithakur9967 Жыл бұрын
Bhaiya why are we using 2 nested while loops. I think this can be done in one as well.
@manaskhare412
@manaskhare412 2 жыл бұрын
BFS
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
yessssss
@--Blood--Prince--
@--Blood--Prince-- 11 ай бұрын
Sir this question is very similar to minimum time to burn tree Turant concept pakad mai aa gaya
@HelloWorldbyprince
@HelloWorldbyprince 11 ай бұрын
Yess true
@jatinUpadhyayF
@jatinUpadhyayF 2 жыл бұрын
Keep up the great work within few months u will be getting lot of views
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
Thanks brother 😊
@bhumithakur9967
@bhumithakur9967 Жыл бұрын
Bhaiya why are we using 2 nested while loops. I think this can be done in one as well.
@anonymous090
@anonymous090 2 жыл бұрын
Thank you so much bhaiya... Great vid!😀
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
Most welcome 😊
@pavanreddy3462
@pavanreddy3462 Жыл бұрын
can we do this using DFS (rec)?
@HelloWorldbyprince
@HelloWorldbyprince Жыл бұрын
yess offcourse
@gauravparasar4571
@gauravparasar4571 Жыл бұрын
14:24 sir ye [0] kyu likha
@HelloWorldbyprince
@HelloWorldbyprince Жыл бұрын
got it
@gauravkumararya3311
@gauravkumararya3311 Жыл бұрын
BFS traversal will use
@KunalSingh-ol6zx
@KunalSingh-ol6zx 9 ай бұрын
bfs
@HelloWorldbyprince
@HelloWorldbyprince 9 ай бұрын
nice
@prabhatmishra5667
@prabhatmishra5667 2 жыл бұрын
Feeling BFS
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
yessssss
@aniketkumar2502
@aniketkumar2502 Жыл бұрын
Bahut achha sir
@HelloWorldbyprince
@HelloWorldbyprince Жыл бұрын
Thanks Aniket
@pawanlok1776
@pawanlok1776 2 жыл бұрын
NICE explaining..... PRINCE SIR
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
Thanks for learning Please, share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀
@rahulgautam6387
@rahulgautam6387 2 жыл бұрын
Great Explai....
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
Glad you liked it! Please, share this channel in your college, groups, or LinkedIn bcoz it's cost nothing to you 😀
@gokulnaathbaskar9808
@gokulnaathbaskar9808 2 жыл бұрын
@HelloWorldbyprince
@HelloWorldbyprince 2 жыл бұрын
🔥
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 15 МЛН
ПРИКОЛЫ НАД БРАТОМ #shorts
00:23
Паша Осадчий
Рет қаралды 6 МЛН
Inside Out 2: BABY JOY VS SHIN SONIC 3
00:19
AnythingAlexia
Рет қаралды 8 МЛН
Rotting Oranges | Directional Arrays & BFS | LeetCode
14:55
AlgosWithMichael
Рет қаралды 4,6 М.
G-10. Rotten Oranges | C++ | Java
22:30
take U forward
Рет қаралды 318 М.
LeetCode was HARD until I Learned these 15 Patterns
13:00
Ashish Pratap Singh
Рет қаралды 365 М.
IIT-JEE Toppers: Where Are They Now?
16:07
Mohak Mangal
Рет қаралды 1,1 МЛН
Rotting Oranges - Leetcode 994 - Python
12:19
NeetCode
Рет қаралды 102 М.
Minimum time required to rot all Oranges | Love Babbar DSA Sheet | Amazon🔥
22:58
Yogesh & Shailesh (CodeLibrary)
Рет қаралды 10 М.
Acing Google Coding Interview as an 18 year old High School Student
48:57
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 15 МЛН