Flood Fill - Solution | Recursion | Data Structures and Algorithms in JAVA
Vložit
- čas přidán 26. 07. 2020
- Please consume this content on nados.pepcoding.com for a richer experience. It is necessary to solve the questions while watching videos, nados.pepcoding.com enables that.
NADOS also enables doubt support, career opportunities and contests besides free of charge content for learning. In this video, we discuss the solution of the Flood Fill problem where we are required to print the path from the top left corner to the bottom right corner of a 2-D array with avoiding obstacles present in the array. In this problem, only one move is allowed at a time and can be moved in the top, left, down or right direction. For a better understanding of the problem, click here:
For a better experience and more exercises, VISIT: www.pepcoding.com/resources/o...
#pepcoding #java #programming
Have a look at our result: www.pepcoding.com/placements
Follow us on our FB page: / pepcoding
Follow us on Instagram: / pepcoding
Follow us on LinkedIn: / pepcoding-education
One of the best things about the instructor is that he dry runs the code and explains why things are happening - I have not seen many CZcamsrs explaining code details as well as dry running a code.
I am glad. Keep learning. Keep supporting. Your kind words are the kind of motivation that truly help me in making more and more content. Especially, these days, not everybody is generous with motivating anybody either. It means a lot😊🙏
And also enthusiasm to dry run code is really amazing 🤯
@@Pepcoding thanks u so much sir for providing this video for free
This man is a legend, soon pepcoding is going to be the leading institute of the country
OMG Thanks alot beta for appreciating.
The love and respect which I get from you people keep me highly motivated and the same I am able to forward It to you people through my videos.
So, keep motivating, keep learning and keep loving Pepcoding😊
when i see the video length(41 minutes),then i thought this is going to be very tough question and will have to be patience,but it feels like 5 minutes video.This is the next level explanation sir.thanks.And please don't say that we are losing patience,even we are enjoying
Once a legend said, "Jo code kehta hai or Dry run mein imandari bartein". Thanks Sir!
hehe. tumhe content pasand aa rha hai agar to ek request hai. Ek review daal do yar
g.page/Pepcoding/review?rc
@@Pepcoding Link ni khul raha h sir
Best line: develope the stamina to dry run your code❤️
100% true. Dry runs gives you a better insight
I instantly shared and reviewed you on LinkedIn , Yotube , Google reviews , after seeing so much dedication
I am glad. Keep learning. Keep supporting. Your kind words are the kind of motivation that truly help me in making more and more content. Especially, these days, not everybody is generous with motivating anybody either. It means a lot
Ultimate level of dry run .No one literally no one on CZcams like u sir.✌✌✌✌✌✌✨✨✨✨✨
sumit sir from now i'm your fan, love from jadavpur university.
Love from pepcoding!
Bhai Kaunsa yr nd branch!?
Sumeet, sahi mein you are a GOAT, nobody can teach like you with so much patience and in depth analysis. Salute to you sir.
When he says " Bass mera saath banae rakhiyega " that all together is a vibe ! Kudos to Sumeet Sir.😄
I really thank to God.because I mat to you.
If I had not mat with you on CZcams.what would happen of me..
My aim to learn to understand, recursion ,dynamic programming
I would have lost.
I don't have words. May you keep teach us . Your content is amazing.
You are my hero. I don't follow Salman Khan,sharukh Khan , because thay did not do anything for us. You are amazing teacher.
May God bless you and you get more and more success in life.😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘🪐😘🪐😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘😘☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️😘😘☺️☺️☺️😘😘😘😘😘😘😘😘😘😘☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️☺️🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🇧🇳🇧🇳🇧🇳🇧🇳🇧🇳🇧🇳🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇🥇
probably greatest feat of teaching recursion and graph on youtube ...just amazing
Glad to know that you liked the content and thank you for appreciating.
The love and respect which I get from you people keep me highly motivated and the same I am able to forward It to you people through my videos.
So, keep motivating, keep learning and keep loving Pepcoding😊
You can just feel the amount of effort Sir puts into teaching which makes sure we actually understand what Sir is trying to deliver.Thank you so much Sir for this awsome explanation will never forgot this Flood Fill question ever. Thank-you so much sir for such quality content.
Hatts off to your efforts!
I am glad ki aapka fayda ho rha hai. Content acha lag rha hai aur review nahi dala hai abhi tak to ek daal do yar
g.page/Pepcoding/review?rc
Absolutely awesome and hardly seen anyone doing such a deep dry run and code analysis. Just love it, please keep doing such a great work and keep sharing.
Sir this is pure passion...hardly seen anyone this passionate
Huge respect for you..❤️
After watching your videos, me to doubts "chaliye ji, hatiye"
The Dedication and detailing is amazing!!
U can save the space for visited array by making value of maze array as -1 when visited and back to 0 after all recursion calls and check for the same in first if condition i.e. inplace of visited[row][col] == true, u can check for maze[row][col] == -1
Thanks buddy for suggestion😄
It's called "GOLDEN CONTENT" 🥰
Thank you so much, sir!
Keep the good work up Sir. I bet this is the best video on the whole www on Flood fill.
There are no words to appreciate your teaching skills just amazing ☺️
in explanation, no one can beat you, i guarantee 🙏. Thank you for the amazing videos :)
Great video and cleared the flow. Really appreciate your time & patience for dry running all the possible paths. Thanks for sharing! 😊
One of the best recursion videos!
Thanks sirr!
Hats off to your effort, sir..
You are a legend..
one of the best explanation in whole youtube , the way you teach is amazing
This Question sis itself enough to udersatnd the whole recursion and hat's of to sumit sir for dry run and in depth analysis you are are magician of DSA sir ❤❤
The only instructor across CZcams who can dry run recursion too !!! 😍😎
Bro u made recursion so easy for us #Respect
Swaad aa gya sir, question krke.
One of the best tutorial I ever seen my life
No words for explanation....too good 👏👏👏
no words ....really awsome ..thank you so much
Thanks from the bottom of the heart for putting so much effort .
It's my pleasure
Isse behtar explanation is question ka kahi mil nahi sakta.Excellent explanation Sir!
Hats off to the amount of efforts that you have put to explain the concept & make it crystal clear to us. Thank you so much sir ,i hvn't seen any youtuber till now who explains such a lengthy topic & even if some of them do ...still your explanation beats them.
The kind of effort you put in explaining every single detail is mind blowing sir. People don't put so much effort in even paid courses. You are doing for free for fellow students like us. Thank you so much😊
Excellent explanation with great example of patience.. thank you sir..:)
Sumeet Sir you're a god. I am definitely not going to get flood fill off my head in my life. What an explanation, hats off.
Each and every question that is covered in the whole playlist is handpicked.
And the way sumeet sir explains it,
It makes the learning super fun.
He is such a legendary teacher and the complete playlist provided by pepcoding is really awesome.
I can not express my gratitude towards pepcoding and sumeet sir in words.
I try to watch every videos of yours and I just wonder how can you explain so easliy by drawing those stuff and with huge patience.Please don' t stop making videos on this or I will just cry Please keep making this videos.
41 minute dekh kr lga ki patince lgegi bt kb ho gya pta hi nhi chla mtlb question toh hua nhi bt smjhne m itna zyaada mza aaya ki koi alfaaz nhi h. dil se 10000000000000 shukriya sir ji 😊😊😊😊❤👌👌👌👌👌👌👌👌👌
bhai you are amazing! singing while writing the code was it for me, I was smiling the entire time learning this content.
Sumit Sir this may be a late post but thanks a lot sir. Your enthusiasm is infectious. Really enlightening to study your tutorials.
Sir maan gye aapko kitni mehnat krte h hame pdane ke liye. Iam very glad I found you, Thank you so much.
Sir one of the best examples to clear concept
Sir U are a real hero from heart
Sir... Your patience level 👌👌👌💚💚🙏🙏🙏🙏🙏
Thanks a lot sir, for making recursion a cakewalk! Really appreciate your efforts
Teachers like you will make the country stand strong..!!!
Excellent ......no one can explain this level 💯💯
Really appreciate your teaching skills Hats off
Sir, I am in love with t he way you analyse, thats the way I have always learned anything and I was missing the same when I chose coding, but having found you, I am amazed the amount of effort u put to make us understand the concept, already heartedly reviewed at various platforms.
Thankyou beta, for such kind words.
I am glad you liked it. I hope that you are watching till the end and trying to understand what, how, and especially why of the problem.
If you like our efforts, will you like to write a few words about us here (www.quora.com/How-do-I-start-learning-or-strengthen-my-knowledge-of-data-structures-and-algorithms )
Huge Respect for you man, Sumeet Sir. I am not afraid of DSA any more...
Cannot thank you enough!
Thank you so much for such great explanation. You are truly amazing.
Thank you so much Sumeet Sir,aap bhagwaan ho.Aapka teaching style is amazing.Keep teaching and keep helping us.Aap inspiration ho hamare liye.Hamara support forever rahega sir aapke saath.
Completed dry running the code and actually it gives more clarity as sir said
This man is the reason that today i know how to approach and solve recursion questions without any fear....thank you so much sir ❤❤
Bohot amazing dry run tha sir🔥
Great in-depth analysis and explanation. Thanks!
Glad it was helpful!
If you like my efforts, I request a review
g.page/Pepcoding/review?rc
What a teacher...thanku summit sir for this much❤️❤️❤️❤️
Very amazing sir.. Next level explanation.. You really made this thing easy for us..Thanks a lot sir...
thanku pepcoding !!
this is the best video and also the recursion playlist is best on youtube even paid one can't teach at this level.
Lots of Analysis,lots of enjoyment.
Sumeet Sir, yahhan se dsa bhot easy lgta hai, baaki jagah se karne pe aisa lagta tha jaise cramming kr rha hu, Thanks for thhe content
Watched on 6 Dec, 2021 - Thanks for the video.
You're welcome, Raj :). For more curated videos like this, please visit nados.pepcoding.com
Patience sir ji....
Hats off
Sir 36000 topo ki salami aapko, itni mehnat hm sab k liye wo bhi free content me. Sir agar aapke jese India k sare teachers ho jaye to America, China ko 1 saal me bht peeche chodd de hum.
Really glad to hear that and am very happy that my efforts are helpful for you guys. Wish you all the best! For better experience visit on nados.io
Sir best ho aapp.. I hope aapko maalum hai ye.. Me recursion ke codes ka dry run dhundh dhund ke thak gaya tha but you are a God for me.. Thank you so much
This was pure gold Sumeet Sir! Thank you very much for putting so much efforts into this. I was able to understand the recursion and the backtracking aspect of it very easily because of this video.
Sir iss dry run ke liye
Thank you so much ! and you are awesome .
Hats off to the efforts taken and completing complete dry run !
For better experience, visit nados.io, where you will get well curated content and career opportunities.
Isse better explanation possible hi nahi hai. Thank you very much. Also, i noticed that during these long videos, you keep making more jokes than your normal videos so that your students don't get bored :)
I had also just faced stack overflow error, never ending error. And i got this video, explaining exactly this error.
Sumeet sir explanation is unmatchable
Amazing explanation...specially the backtracking part
love when he sings in between the lecture.
Enjoyed a lot!!
one thing i must say...if any one have doubt on your teaching plzz must watch this video "you never loose your concentration and dedication to make us understood even i loose in betwwen but your word patience make me feel connected . happy to watch you sir🥰🥰
thank u so muc h for ur hardwork
Other CZcamsrs must understand.....Providing animations and all is not that important but a better EXPLAINATION is !
and this is the only reason they lag behind Sumit sir.
Keep Going sir, God bless you !
The best dry run ever experienced ... hats of to you sir ji !!!
Glad to know that you liked the content and thank you for appreciating.
The love and respect which I get from you people keep me highly motivated and the same I am able to forward It to you people through my videos.
So, keep motivating, keep learning and keep loving Pepcoding😊
Thanks sir for awesome explanation...................
this is beautifully taught
Most fun coding video I've watched till date :)
Hope you like the video 🙂
For better experience and precisely arranged content visit - nados.pepcoding.com
sir, apne jo gaana gungunaya 1:50 pe wo main kal suna tha aapse, aur aaj mere dimaag me na jane kyu din bhar yahi gaana chal rha tha,,,lakin yaad nhi aa rha tha ki maine kidhar sunn rakha hai,,, although iss gaane ka pahle line tk mujhe nhi yaad aa rha tha , bs jitna aapne gungunaya bss uthna hi... aur abhi sone k time anzane me maine gana search kiye "KHUBSURAT HAI WO ITNA ...SAHA NHI JATA" bs turant mujhe yaad aa gya ki ye to wahi gana hai jo maine aaj din-bhar gungunaya...aur aapne gaya tha. finally, ye gana fika-fika sa lg rha sunne me,,, I WISH AND HOPE, AAP ISS GAANE KO THODA AUR GAAYENGE . THANK YOU for your all effort , you did a lot more.❤️❤️❤️❤️
Legendary Explanation.....Cannot explain beauty of this video....with words....
I am glad you like it
Itna badhiya master salute to you sir
Keep learning.
For better experience, visit nados.io, where you will get well curated content and career opportunities.
Awesome explanation ✨☺️
I'm speechless.....just amazing....🤝🤝💥💯💯💯💯
Thank you for your kind words.
Hats off to your effort sir. Thank you for this.
My pleasure
You show great patience to teach and solve this question. Lot's of appreciation 👍👍
I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
If you like our efforts, we request a review
g.page/Pepcoding/review?rc
You can subscribe to our channel here
czcams.com/users/Pepcodingabout?view_as=subscriber
Amazing Sir. I am in awe of your stamina and patience
Thank you! Cheers!
I am Learning coding and the Amazing mentor Whom i love to call Maha-Prabhu is giving me the power of Detailed Analysis and at the Same time improving my spotify PlayList As well.Genius.
very nicely explained👌👌👌👌
Excellent dry run.... Danyavadh ji.
padhte rahie
Simply amazing. If i dont succeed now, its completely my own fault
very well explained
Hats off..🙏🙏🙏
Huge respect for you..❤️
Thankyou beta!
I am glad you liked it. I also hope that you are watching till the end and trying to understand the what, how, and especially why of the problem. If you like our efforts, will you like to review us here - g.page/Pepcoding/review?rc