if you watch starting 10 minutes of this video, you will realize that how he has focused and explained the concept rather than solving the question that other youtubers are doing. Thanks for this video.
@Pepcoding3 жыл бұрын
Thanks :). If you want more detailed content like this with better experience please sign up on nados.pepcoding.com and also follow us on Instagram for latest updates. instagram.com/pepcoding/
@tusharjajodia90773 жыл бұрын
I can bet, Only video on KZbin to explain this concept flawlessly. Most of the KZbinr themselves haven't understood the question
@nitinkumar59743 жыл бұрын
Watch Aditya Verma video for egg dropping problem 🔥🔥.. 👍 But sumit sir ka toh mukabla hi nahi hai... 🔥
Best explanation ever. Thank you, sir :) but at 40:22 max of (2,4) will be 4 and mat[2][7] will become 4.
@rohitshirur76402 жыл бұрын
Yes, It's by Mistake
@AmanGupta-ks5ki3 жыл бұрын
I was struggling for more than 2 days to understand this problem.15 minutes into this video I understood the problem completely. Thank you for this great explanation.
@Pepcoding3 жыл бұрын
Glad it helped and If you like our efforts, please upvote the comments written by the students about Pepcoding here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
@payalsagar18083 жыл бұрын
His efforts🥺 sir ko pta h ki baache video ko dobara dobara dekh k try kr skte hai lekin still he tries his best by repeating many times
@Pepcoding3 жыл бұрын
Thank you so much and If you like our efforts, please upvote the comments written by the students about Pepcoding here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
@tejaswinigurram95272 жыл бұрын
best explanation so far, was struggling to understand the intuition, cleared up so well !!
@harshitgupta50563 жыл бұрын
Why I was not aware of this channel before. The way you teach is awesome. I am really grateful for such awesome videos.
@tusharnain66522 жыл бұрын
This is the bestest explanation of any problem on youtube.
@vidhishah91542 жыл бұрын
This is the best explanation I came across. Watched 4 explanation videos on youtube and this one steals the show. Thank you for sharing this video.
@Pepcoding2 жыл бұрын
Thank you. Why don't you check out all our content on nados.pepcoding.com?
@Karan9.910 ай бұрын
I generally do not comment on any video but believe me he is just awesome . He is clearing not only question statement but also the depth of concept involved many famous youtubers have not released a video on this topic Hats off to him
@kartikeyamishra33253 жыл бұрын
Itne simple way me samjhaya hai..... Hats off 🙏
@Pepcoding3 жыл бұрын
Thankyou beta! If you like our efforts, please upvote the comments written by the students about Pepcoding here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms ) Keep learning and keep loving Pepcoding😊
@deepanshu65763 жыл бұрын
Sir this solution is not accepting on leetcode, its time complexity is O(n*n*k) and try to use binary search while checking for egg survives or fails, it will reduce complexity to TC-O(n*k*logn)
@kushsharma76143 жыл бұрын
four years of my engineering, never understood this problem till I watched this video. This is gold.
@Pepcoding3 жыл бұрын
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😊
@aman65614 жыл бұрын
yaad krli hai line. jo apne haath me uska best or jo luck pr depend hai uska worst.
@Pepcoding4 жыл бұрын
Ye line to zindagi mei bhi kaam aa sakti hai
@aman65614 жыл бұрын
@@Pepcoding haa sr hmaare haath me prep krna wo krre hai referral lge na lge interview mile na mile ye luck wali baat. jo apne haath me usko best krre hai ..
@vishwashdwivedi94693 жыл бұрын
Clapps for you Sir ! Thanks for making the concept so easy !
@Pepcoding3 жыл бұрын
Thankyou beta! I am glad you liked it. I also 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 ) Keep learning and keep loving Pepcoding😊
@ujjwalchauhan6256 Жыл бұрын
@@Pepcoding sir but this code is giving tle on leetcode
@siddharthsahu87633 жыл бұрын
The way you explain dynamic problems is far better than others. Thank you sir😁.
@binarybeast26854 жыл бұрын
Log code padhaate hai, aapne concept samja diya. Thank you so much. I don't have much subs but will definitely promote you in my videos!
@Pepcoding3 жыл бұрын
I am glad. 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.😊 If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
@binarybeast26853 жыл бұрын
@@Pepcoding Already done!! :-D
@rahulbhatia30754 жыл бұрын
Woahhh sir finally egg 🥚 drop problem solution is here ❤️❤️🔥🔥
@Pepcoding4 жыл бұрын
Great 👍
@imranwahid98713 жыл бұрын
No one can explain better than you sir. Thanks a lot sir.
@Pepcoding3 жыл бұрын
Thankyou beta! 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/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
@motivational_dosee2 жыл бұрын
Sir dimag ka dahi ho gya tha...but now the problem is crystal clear.... thanks ❤️❤️
@ashutoshkumar4565 Жыл бұрын
48:43 kaun sa agla sawal? optimal strategy for a game??
@amazinglife54003 жыл бұрын
You are the only capable person right now who actually extracted the real CRUX of the problem and hit that hard with your approach. No other famous youtubers were able to find out the real crux of problem. Hats off Sir, This is my sixth or seventh video in KZbin watching for this particular problem and here I got my final satisfactory understanding of the problem.
@Pepcoding3 жыл бұрын
keep motivating, keep learning and keep loving Pepcoding😊
@Radaradababurao3 жыл бұрын
40:22 maximum value should be 4 else awesome content
@ranajithore48792 жыл бұрын
Bro you save me.... Hats off. I was having problem Optimal Strategy problems. And you cleared my doubts so well. Kudos man. I generally don't comment. But your efforts forced me to appreciate your work!
@thesurajpatade3 жыл бұрын
Kyaa kamaal padhaate ho aap!! Majaa hi aa gya!!
@eziosan72082 жыл бұрын
The way of explanation. Hats off to you 👏 👏 👏
@apurvamilindgaikwad69262 жыл бұрын
And this was exactly what I was looking for! Thank you so much for the wonderful explanation! 😃
@vedangpandey47039 ай бұрын
discovering you late but you are a great teacher. you really put the effort in your video. i can see that.
@tanaykamath14152 жыл бұрын
This channel is soo underrated!!!
@jadanabil80443 жыл бұрын
Thank you for the detailed explanation. Can you please also cover a solution with binary search approach with time complexity of O(K*N*logN)
@Pepcoding3 жыл бұрын
Soon beta.
@vaibhavjain47103 жыл бұрын
I am getting TLE, Can u please make a video on the optimization of the egg dropping problem?
@crazyboy-gw7rk2 жыл бұрын
Use matrix to store ans N*K size
@itsme-z1s4 ай бұрын
wonderful explanation I have found in whole youtube. Thank you so muchhhhhhh
@srajikagupta36273 жыл бұрын
Best explanation with a life lesson 🤩
@SandeshMotoVlogs3 жыл бұрын
Sir best of worst k liye maine priority queue(min heap) use kari usse kaafi aadan hua. Maine Math.max() se queue mai add karte gaya aur end mai peek karke min value le liya
@aishwarya18953 жыл бұрын
No one literally no one explained in such an easy way ✌️
@Pepcoding3 жыл бұрын
Keep learning and keep motivating. For more such exciting content, don't forget to visit nados.pepcoding.com
@arvindersinghvirdi24563 жыл бұрын
wow.....this is great!!! sir u r amazing.... u do the post mortem of each problem which helps in building the logics as well much love sir thanks for these kind of tutorial.....god bless u :)
@Pepcoding3 жыл бұрын
So nice of you, 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🙏
@aparnanaik81813 жыл бұрын
Hats off. You are the best teacher on earth !
@Pepcoding3 жыл бұрын
wow, this cheers me up. I am glad we at pepcoding could be of help to you. Keep learning. Also, recommend us to your juniors and peers, they may also benefit.
@sumansauravpanda1909 Жыл бұрын
best ever explanation I have seen on KZbin ❤
@swetajha22653 жыл бұрын
Very well explained. Kudos to u for putting so much effort!
@skasrafali8707Ай бұрын
Best explanation over the internet
@debasishpatnaik2942 жыл бұрын
Man ,seriously Heads off to your patience and Explanation ,This made my day !!!This is the best explanation and correlating the real world CEO-Manager problem was really cherry on the cake. !!! :)
@ramishwarkumar98303 жыл бұрын
Sir koti koti pranam hai itna acha content dene ke liye.
@Pepcoding3 жыл бұрын
Thank you so much Beta and If you like the content could you post something on LinkedIn about us? This will help us in reaching out to more people and help a lot of other students as well Something like this Sumeet Malik from Pepcoding is making all his content freely available to the community You can check it out here - www.pepcoding.com/resources / Also, this is the youtube channel - kzbin.infoplaylists?view_as=subscriber
@priyajaiwal8072Ай бұрын
Learnt life philosophy and dp in one video : ). Thank you
@Elon-musk-0074 жыл бұрын
Good to see new questions added to platform
@pranavsingh10813 жыл бұрын
mza aa gya sir , ye best of the worst ka technique game theory mei bhi padha that Maine , aaj pta chala things are related
@Pepcoding3 жыл бұрын
Glad you enjoyed it :) For more content like this you can visit nados.pepcoding.com
@ashishkhare75873 жыл бұрын
God level teaching!! Kudos !!
@akanshapriya53922 жыл бұрын
I can watch these videos the entire day :)
@Pepcoding2 жыл бұрын
Keep learning. And for better experience, visit nados.io, where you will get well curated content and career opportunities.
@RajeshSarkar-ud9oj2 жыл бұрын
This is my 🙃best of best😅 video on egg droping problem Thank you sir. now the whole concept is clear . the part of office project distribution is really concept clearing example..
@subhajitmanna3053 жыл бұрын
best explanation till now for this problem.
@reeshikagrawal27043 жыл бұрын
great explanation..bt this solution is giving tle in leetcode. try to use binary search
@preetgandhi12333 жыл бұрын
Aree bhaiyaji agg laga di...ande fodne ka estimate k sath placement mein fodne ka estimation acha lgg rha..:wink emoji inserted.
@kushalchakraborty86152 жыл бұрын
Greatest explanation of all times
@Pepcoding2 жыл бұрын
Glad to know, for better experience and well organised content sign up on nados.io and start learning.
@ROHITKADYANJI2 жыл бұрын
That is why we love Sumit sir explanation ❣️
@Pepcoding2 жыл бұрын
Glad you love the explanation, for better experience and well organised content sign up on nados.io and start learning.
@pranabsarkar3 жыл бұрын
Pranam Sir, pura confusion dur ho gya!
@mehak_mits Жыл бұрын
Best video that explains the concept well.👍
@paragroy53593 жыл бұрын
Nice explanation sir....thanks a lot for the video....the content on your youtube channel is amazing...
@lord_abhinav3 жыл бұрын
Sir, aapki 4:56 wali baat dil pe lagti hai
@Pepcoding2 жыл бұрын
For better experience and well organised content visit nados.pepcoding.com
@guruvanshsinghbhatia88533 жыл бұрын
Maza aa gaya Sir. O(n*k) ka bhi video banao please .
@sumitkumarchoudhary583 жыл бұрын
@Pepcoding can we treat this as binary search as floors are always sorted and then we directly check at middle of building i.e we can directly return ceil(log2(k)) k-number of buildings and get the and in o(1) time
@anoopkumar87323 жыл бұрын
Did you get the answer to why binary search cannot be applied to this question?
@rajatchauhan55013 жыл бұрын
you need to have unlimited eggs for that case
@samiulkhan37442 жыл бұрын
Here is the binary search solution,lc accepted public int solve(int k,int n,int[][]memo) { if(n==0||n==1||k==1) return n; if(memo[k][n]!=0) return memo[k][n]; int ans = Integer.MAX_VALUE,l=1,h=n; while(l
@factswithai23 жыл бұрын
badiya sawal tha sir, samajhne mein kaafi maza aaya. East or west sumeet sir is the best
@Pepcoding3 жыл бұрын
keep motivating and Keep loving😊
@094_ramankumar93 жыл бұрын
Very nice explanation sir
@FinanceMode142 жыл бұрын
thank you so much sir watch only manager question and has gotten the solution of egg dropping
@nimishkaran85693 жыл бұрын
for 5 years i have been searching for that brief explanation..great work..
@Pepcoding3 жыл бұрын
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 kzbin.infoabout?view_as=subscriber
@naitikverma65863 жыл бұрын
if you are able to get correct answer by this method please share the solution
@balajijangde84703 жыл бұрын
I have seen lot of videos on this problem but not able to understand, but this video clears all my doubts. Thank you sumit sir and #pepcoding
@anonymoussloth66873 жыл бұрын
Why can't we do binary search on the floors to find critical floor? We will check if egg breaks from middle floor. If it does, then we will check in the bottom range. Otherwise, in the top range. And this way, the number of attempts will be logF. So we can for sure find a critical floor in logF attempts right? So when will there be a case when it is less than logF?
@siddharthgupta8484 жыл бұрын
Sir, really great explanation, i would just request you to increase the frequency of questions as we have to cover a lot of questions from different topics.
@Pepcoding4 жыл бұрын
I will try my best
@mohitsaran91933 жыл бұрын
Sir at DP[2][7] there should be 4 because we are calculating the max(2,4) so it will be 4 and the whole max array will becm (3,3,3,3,4,5,6) not [(3,3,3,3,2,5,6)(written in video)]. so the min of max will be 3 and the attempt will be 3+1=4
@NewMovieTrailersTransformed2 жыл бұрын
I understood the problem clearly because of you so thanks, and the humor when you said, "jisko samaj ana hoga aa chuka hoga ab tak" hahaa .
@Pepcoding2 жыл бұрын
Glad it helped! Keep learning. And for better experience, visit nados.io, where you will get well curated content and career opportunities.
@anshikadubey27296 ай бұрын
don't know why so underrated
@ekanshsharma1309 Жыл бұрын
Thank You so much sir, What an amazing solution. Understand everything
@kartikeysrivastava64733 жыл бұрын
tagda bhai...appreciate your effort...
@manishpurohit17653 жыл бұрын
May to prosper sir. Kya gajab samjhate aap
@shivkrishnajaiswal83942 жыл бұрын
Good explanation but runtime is high which make it TLE in leetcode.
@aditidey93662 жыл бұрын
Great explanation sir! The CPP version for this logic was giving a TLE on leetcode. Instead of linear search, we must do binary search to pass the testcases.
@yashrajpathak81032 жыл бұрын
can u share ur code?
@aditidey93662 жыл бұрын
@@yashrajpathak8103 class Solution { public: int superEggDrop(int k, int n) { vector dp(k+1,vector(n+1,0)); for(int i=1; i
@yashrajpathak81032 жыл бұрын
@@aditidey9366 thanks 😃😃
@NAVNEETKUMAR-ik1rb3 жыл бұрын
sir next question which depends on this one ? which you mentioned in video.
@nandankakadiya14943 жыл бұрын
Bow down to king absolutely legend 🙏
@Pepcoding3 жыл бұрын
Thankyou beta! 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/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
@kunalnayak73252 жыл бұрын
Sir amazing expalnattion!!! Can u plz tell that which question you are referring as the next question, in last of the video, that will give complete insight??
@sameer15714 жыл бұрын
Sir why we had not apply binary search
@aasthaaggarwal89094 жыл бұрын
sir, the explanation is so mesmerizing
@Pepcoding4 жыл бұрын
Glad to hear that. Keep watching
@thirumalaithathachary31112 жыл бұрын
Great. Best logical explanation
@shubhamtalbar3 жыл бұрын
Best explanation of all the videos, kudos !!
@mr.naresh30042 жыл бұрын
noted life lessons epic explanation thankyou so much sir....
@pranjalpatel2563 жыл бұрын
SIR I THINK EGG DROPPING MAINE KITNA TRY KIYA THA SMAAJHNE KA...KAASH PEHLE PATA HOTA HAI PEPCODING KE BARE MEIN TOH MERE 2 SAAL BARBAAD NHI HOTE...KHAIR ABHI BHI TIME HAI..KARUNGA FODNE KA TRY MAI..GR8 EXPLANATION...claps
@kashba2 жыл бұрын
Foodi koi company?
@pranjalpatel2562 жыл бұрын
@@kashba working as sde 1 at bajaj finserv markets
@kashba2 жыл бұрын
@@pranjalpatel256 😎🤝 Badiya bhai Mai bhi 6 mahine ke andar andar badiya company fodunga koi
@Impromptu213 жыл бұрын
Sir apne dp main 1st column zero se initialize ni kiya ...app java use krte ho isliye automatically zero assign hua hoga na.
@Pepcoding3 жыл бұрын
Hanji beta
@VishalKumar-qh6ik3 жыл бұрын
Can you pls tell me which which whiteboard software you are using
@kunalsingla31285 ай бұрын
very nice explanation, Thanks Sir
@sandeepsuthar45822 жыл бұрын
Please add logn solution sir, need clarification on binary search on this problem.
@KuchhBhiLab Жыл бұрын
simply awesome explanation
@rohitkumar-qu5jk3 жыл бұрын
I have a confusion on 40:23 seconds , should not it be Min from (3,3,3,3,4,5,6) + 1 = 4
@rajkamalingle91443 жыл бұрын
yes correct
@deepaksinghverma879525 күн бұрын
Sir charan kahan hai... best explanation...
@baibhavvikas17673 жыл бұрын
this is the best explanation. thank you sir
@riyabharti34733 жыл бұрын
You really make the problem interesting 💯
@Pepcoding3 жыл бұрын
Thankyou beta! 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/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
@sommayghosh46174 жыл бұрын
great explanation sir as usual just the way you make us understand the problem, there is no need to see the code part!
@Pepcoding4 жыл бұрын
Glad to hear that
@skjishanali82044 жыл бұрын
Harr roz with each n every videos of U I see I become a more diehard fan of Your explanation and hardwork(Aap ki baat kya hi bole aap to ho hi Gurudev❤❤).
@Pepcoding4 жыл бұрын
If you like my efforts, I request a review g.page/Pepcoding/review?rc
@skjishanali82044 жыл бұрын
@@Pepcoding Done sir
@shivangsingh12273 жыл бұрын
40:20 max of 2 and 4 will be 4, I think sir has made a mistake. The answer at 2/7 will be 4 instead of 3. Please correct me if I am wrong.
@snehatandri89823 жыл бұрын
Yeah
@anubhavagrawal23922 жыл бұрын
Sir you are God for me...
@bharataaryavrat40673 жыл бұрын
cherry pick question ke weak test cases h pepcoding ke portal pe.
@gautamgoel20243 жыл бұрын
This comment could be helpful . By mistake sir has filled 3 in dp for 7 floors and 2 eggs . It should be 4 for 7 floors and 2 eggs. 40:07
@rohitbajaj77332 жыл бұрын
Great explanation!
@billion_dreams__77874 жыл бұрын
Sir, plz cover scheduling based question, when we sort A/C to destination time and when we sort A/C to arrival time...and also cover dp with bitmask