Soup Servings | INTUITIVE | Recursion | Memoization | GOOGLE | Leetcode-808

  Рет қаралды 5,372

codestorywithMIK

codestorywithMIK

Күн бұрын

This is the 50th Video on our Dynamic Programming (DP) Playlist.
In this video we will try to solve a very good DP Problem Soup Servings - (Leetcode-808).
Trust me, this will no longer be a Medium Problem. I will explain the intuition so easily that you will never forget and start seeing this as cakewalk EASYYY.
We will do live coding after explanation and see if we are able to pass all the test cases.
Problem Name : Soup Servings
Company Tags : GOOGLE
My solutions on Github : github.com/MAZ...
Leetcode Link : leetcode.com/p...
My DP Concepts Playlist : • Roadmap for DP | How t...
My Graph Concepts Playlist : • Graph Concepts & Qns -...
My GitHub Repo for interview preparation : github.com/MAZ...
Subscribe to my channel : / @codestorywithmik
Instagram : / codestorywithmik
Facebook : / 100090524295846
Twitter : / cswithmik
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
#coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge#leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview#interviewtips
#interviewpreparation #interview_ds_algo #hinglish #github #design #data #google #video #instagram #facebook

Пікірлер: 79
@shivanshnegi6957
@shivanshnegi6957 Жыл бұрын
you are the indian version of lee215 🤩
@codestorywithMIK
@codestorywithMIK Жыл бұрын
it means a lot to me 😇🙏❤️
@nitintiwari198
@nitintiwari198 Жыл бұрын
I think he is asian version of MIK
@infinitygaming7192
@infinitygaming7192 Жыл бұрын
true but lee vedio explanation is bad
@gui-codes
@gui-codes 4 ай бұрын
He is the only version of MIK the LEGEND. literally the most unique tutor i have ever encountered till now.
@divyarthsingh589
@divyarthsingh589 Жыл бұрын
That clearity and voice and way of explanation .... amazing. Hope every one teaches DSA like you.
@souravjoshi2293
@souravjoshi2293 Жыл бұрын
seriously, legend
@AlishaKhan-ww3io
@AlishaKhan-ww3io Жыл бұрын
🔥🔥🔥yes
@codestorywithMIK
@codestorywithMIK Жыл бұрын
Means a lot 🙏❤️😇
@AlishaKhan-ww3io
@AlishaKhan-ww3io Жыл бұрын
No one can beat the style of teaching of this guy
@tanishchordia4813
@tanishchordia4813 5 ай бұрын
hey Mik following your playlist for soo long and to be very honest You are literally the DSA god. but please please complete Dp concept vaala playlist. Because Game Theory is something which is very Important and ab apki itni jyada aadat hogyi haii ki kisi or teacher se padhne ka mann hi nhi krta.
@anuppatankar4294
@anuppatankar4294 Жыл бұрын
Best Explanation 👌🏻
@GeniusOG
@GeniusOG Жыл бұрын
Guruji Pranam 🙏🏻 Ap ho to merko thoda bhut smjh aajata h DSA dhanywaad. I hope mai bhi apke jaise question solve kar saku by myself trying my best.
@codestorywithMIK
@codestorywithMIK Жыл бұрын
You will rock Keep working hard 😇💪❤️
@RISHAVKUMAR-c4h
@RISHAVKUMAR-c4h 4 ай бұрын
best explanation so far !!
@YashSinghal
@YashSinghal Жыл бұрын
good question and even better solution
@umeshbisht1054
@umeshbisht1054 Жыл бұрын
Thanku for the explanation bhaiya ❤
@SmokyBigSmoke
@SmokyBigSmoke Жыл бұрын
Really good explanation. Thank you so much.
@chaitanya812
@chaitanya812 Жыл бұрын
waiting the whole day for your video as this is my first probability and i'm kinda freaked when i saw it .
@keertilata20
@keertilata20 Жыл бұрын
I just opened the youtube to see if you uploaded, and you just did. I have yet to watch the video, but I know it would be good. Everything feels easy when you explain. Thank you so much, bhaiya.
@codestorywithMIK
@codestorywithMIK Жыл бұрын
❤️❤️🙏😇😇
@smarthu4617
@smarthu4617 Жыл бұрын
sir don't stop uploading video , I will keep practising with you💪 until I get placed in google,microsoft , amazon.
@codestorywithMIK
@codestorywithMIK Жыл бұрын
Definitely 💪💪💪
@tushargogiya4017
@tushargogiya4017 Жыл бұрын
Nice explanation
@floatingpoint7629
@floatingpoint7629 Жыл бұрын
thanks for the clear and crisp explanation. i was able to code it up after your story points. the question is one of the worst one. if this one comes up during the interview i am not joining that company 🤣.
@SinghCR7_123
@SinghCR7_123 Жыл бұрын
bro you are legend
@taneyasoni
@taneyasoni Жыл бұрын
I am following july daily leetcode challenges. going to grab july batch because of you.
@codestorywithMIK
@codestorywithMIK Жыл бұрын
Means a lot ❤️ Let’s go 💪💪
@souravjoshi2293
@souravjoshi2293 Жыл бұрын
Aag laga diya bhai . Itni clarity 🔥🔥🔥
@gui-codes
@gui-codes 4 ай бұрын
literally the best
@sauravbiswajit8091
@sauravbiswajit8091 Жыл бұрын
Thanks for a clear explanation 😊😊😊keep teaching us like this always
@sonumondal9376
@sonumondal9376 Жыл бұрын
Last few days i am watching your playlist understood the logic and done my self at the end part was really different but you made us understood again ❤❤❤❤❤❤❤
@codestorywithMIK
@codestorywithMIK Жыл бұрын
Thanks a lot 😇🙏❤️
@Global_nomad_diaries
@Global_nomad_diaries 9 ай бұрын
Great explanation Mazhar!
@dayashankarlakhotia4943
@dayashankarlakhotia4943 Жыл бұрын
Good explanation understood thank
@vibhupandey9522
@vibhupandey9522 Жыл бұрын
bro you are gawd❤‍🔥🔥
@wearevacationuncoverers
@wearevacationuncoverers Жыл бұрын
My one stop solution
@kishan.17
@kishan.17 Жыл бұрын
Thanks you soo much bro u made us consistent and helping us become a master in coding ur approaches and ur consistently 🙌 is helping us soooo much.love ❤ U bro .
@codestorywithMIK
@codestorywithMIK Жыл бұрын
It means a lot 😇🙏❤️ Let’s stay consistent until we all reach our goals
@tutuimam3381
@tutuimam3381 Жыл бұрын
Amazing❤❤❤
@shabananoor9423
@shabananoor9423 Жыл бұрын
Legend 🌟
@thekindspill
@thekindspill Жыл бұрын
Qn parhne k baad I searched you on KZbin. And I got the video.
@oqant0424
@oqant0424 Жыл бұрын
thank u so much :)
@souravjoshi2293
@souravjoshi2293 Жыл бұрын
Directly came to your channel bro
@codeandtalk6
@codeandtalk6 Жыл бұрын
❤❤
@the_only_one9415
@the_only_one9415 Жыл бұрын
sir can u tell how the recursive tree would look like? and sir jb double return karana ho to .0 baad me lagana compulsory hai kya?
@Brute_Coder
@Brute_Coder Жыл бұрын
pls post your solution for java folks also ..... it will be really helpful for us
@codestorywithMIK
@codestorywithMIK Жыл бұрын
Actually always someone in my comment section posts the JAVA code. But i will ensure i will add from next time if it’s not there 🙏🙏
@codeandtalk6
@codeandtalk6 Жыл бұрын
Bro I have a question in probability questions when should we add and when to multiply.
@codestorywithMIK
@codestorywithMIK Жыл бұрын
Take it like this way , When an Event (whose Probability you want to take out) can be found from independent different operations - We Add them , because from each operation independently you can get the probability of A getting to 0 If the probability will depend on all the operations simultaneously, then we multiply. I remember it was taught in our probability classes in school i guess.
@recessionriche
@recessionriche Жыл бұрын
Can we pass an index variable into the function like idx+1 and keep iterating that way? When do we know when to use for loop?
@codestorywithMIK
@codestorywithMIK Жыл бұрын
For every state of A and B, you want to try all 4 operations that’s why i used a for loop to try all four operations on each state.
@recessionriche
@recessionriche Жыл бұрын
@@codestorywithMIK ohh ohk got it thanks :)
@chirag7694
@chirag7694 Жыл бұрын
Language me khel gaya yeh toh
@MounikaEMB
@MounikaEMB Жыл бұрын
😊 waiting for code story
@itsmesanju1069
@itsmesanju1069 Жыл бұрын
Sir compiler me thoda zoom kar ke samjhya kijiye
@codestorywithMIK
@codestorywithMIK Жыл бұрын
Sure thing. Feedback taken ❤️❤️
@yuanliu5945
@yuanliu5945 Жыл бұрын
Can you add the English subtitles? The content is so great but I cannot fully understand
@codestorywithMIK
@codestorywithMIK Жыл бұрын
Hi there 🙏❤️ I will soon try to do that. Right now, some of my subscribers (who don’t understand Hindi wrll) are using some external tool to convert it to English. But soon i will start adding
@ShivangiSingh-wc3gk
@ShivangiSingh-wc3gk Жыл бұрын
I missed the UP accent been so long
@Rajat_maurya
@Rajat_maurya Жыл бұрын
Do interviewer ask these type of que??
@codestorywithMIK
@codestorywithMIK Жыл бұрын
It was asked in Google and Cisco Hackathon
@codestorywithMIK
@codestorywithMIK Жыл бұрын
But an interviewer might give hints and explain the qn with examples because this is a wierd qn
@Rajat_maurya
@Rajat_maurya Жыл бұрын
@@codestorywithMIK yeah man the framing of que is wierd
@Mainak908
@Mainak908 Жыл бұрын
Bhaiya mein generally like se jyada dislike Wale questions ignore karta hoon...kya ye approach shi rahega?
@codestorywithMIK
@codestorywithMIK Жыл бұрын
Generally qns get dislikes because of poor problem statement Dont worry, in interviews, they clear the qns well and explain well if you dont get it. You can check for explanation in discuss sections else leave the qn if its too badly explained
@Mainak908
@Mainak908 Жыл бұрын
@@codestorywithMIK thanks bhaiya for clarifying this
@dhairyachauhan6622
@dhairyachauhan6622 Жыл бұрын
Bro 92 question kar liye lakin fir bhi Aaj ka question hila bhi nhi paya 😞😞😞
@codestorywithMIK
@codestorywithMIK Жыл бұрын
Hi Dhairya, sorry for late response. I have been traveled during weekend. Let me upload the video in sometime. I am sure it will help.
@dhairyachauhan6622
@dhairyachauhan6622 Жыл бұрын
@@codestorywithMIK ya sure but why am I still not able to solve bothers me 😔
@codestorywithMIK
@codestorywithMIK Жыл бұрын
In the end of my video, i have shared something which will help you to motivate. This qn is way too hard trust me. I think very rare people could come up with the solution at once . I made lots of mistakes and then finally could come up with correct approach and explanation
@codestorywithMIK
@codestorywithMIK Жыл бұрын
Being uploaded.
@dhairyachauhan6622
@dhairyachauhan6622 Жыл бұрын
@@codestorywithMIK thank you very much bro
@Rajdweep
@Rajdweep Жыл бұрын
i just love how many dislikes this question has🤣hutiya qs
@Raj10185
@Raj10185 Жыл бұрын
sorry to say but this is one of the worst question i encountered on leetcode:)
@codestorywithMIK
@codestorywithMIK Жыл бұрын
Indeed ☹️
@utkarshguruji8894
@utkarshguruji8894 Жыл бұрын
n >= 5000 karne pe 5000 hazar test cases ke liye return 1 horaha ? Thoda ambiguous statement lag raha hai . Btw nice explaination . 🤌
@codestorywithMIK
@codestorywithMIK Жыл бұрын
Ah my bad 🙏❤️ Thank you for pointing this out Utkarsh.
When u fight over the armrest
00:41
Adam W
Рет қаралды 31 МЛН
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 2 МЛН
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 2,5 МЛН
I Solved 1583 Leetcode Questions  Here's What I Learned
20:37
ThePrimeTime
Рет қаралды 736 М.
Coding Unbreakable Encryption in C | One-Time Pad
17:42
HirschDaniel
Рет қаралды 4,4 М.
Making an Algorithm Faster
30:08
NeetCodeIO
Рет қаралды 148 М.
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 123 М.
Champagne Tower | Recursion | Memoization | GOOGLE | Leetcode - 799
29:28
codestorywithMIK
Рет қаралды 4,2 М.
5 Simple Steps for Solving Any Recursive Problem
21:03
Reducible
Рет қаралды 1,2 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 31 МЛН