Egg Dropping Problem Dynamic Programming | Leetcode Hard Solutions

Поділитися
Вставка
  • Опубліковано 12 вер 2024
  • 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 problem, we discuss the egg dropping problem using dynamic programming. In this problem,
    1. You are given two integers N and K. N represents the number of eggs and K represents the number of floors in a building.
    2. You have to find the minimum number of attempts you need in order to find the critical floor in the worst case while using the best strategy.
    3. The critical floor is defined as the lowest floor from which you drop an egg and it doesn't break.
    4. There are certain which you have to follow -
    a. All eggs are identical.
    b. An egg that survives a fall can be used again.
    c. A broken egg can't be used again.
    d. If the egg doesn't break at a certain floor, it will not break at any floor below.
    e. If the egg breaks at a certain floor, it will break at any floor above.
    To attempt and to submit this question, click here: www.pepcoding....
    For a better experience and more exercises, VISIT: www.pepcoding....
    Have a look at our result: www.pepcoding....
    Follow us on our FB page: / pepcoding
    Follow us on Instagram: / pepcoding
    Follow us on LinkedIn: / pepcoding-education

КОМЕНТАРІ • 315

  • @sibliis8511
    @sibliis8511 2 роки тому +49

    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.

    • @Pepcoding
      @Pepcoding  2 роки тому +2

      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/

  • @tusharjajodia9077
    @tusharjajodia9077 3 роки тому +101

    I can bet,
    Only video on UA-cam to explain this concept flawlessly.
    Most of the UA-camr themselves haven't understood the question

    • @nitinkumar5974
      @nitinkumar5974 3 роки тому +9

      Watch
      Aditya Verma video for egg dropping problem 🔥🔥.. 👍
      But sumit sir ka toh mukabla hi nahi hai... 🔥

    • @theuntoldtree
      @theuntoldtree 2 роки тому +10

      @@nitinkumar5974 usiko dekha pehle,nhi smjh aaya tbhi yha aaya : | , aur yha aane pr to jaante hi ho.... : )

    • @tanaykamath1415
      @tanaykamath1415 2 роки тому +1

      @@theuntoldtree exactly

    • @siddharth.chandani
      @siddharth.chandani Рік тому +1

      @@theuntoldtree Same bro

  • @nikhilsrivastava7719
    @nikhilsrivastava7719 3 роки тому +22

    Best explanation ever. Thank you, sir :)
    but at 40:22 max of (2,4) will be 4 and mat[2][7] will become 4.

  • @tejaswinigurram9527
    @tejaswinigurram9527 2 роки тому +7

    best explanation so far, was struggling to understand the intuition, cleared up so well !!

  • @AmanGupta-ks5ki
    @AmanGupta-ks5ki 3 роки тому +21

    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.

    • @Pepcoding
      @Pepcoding  3 роки тому +1

      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 )

  • @harshitgupta5056
    @harshitgupta5056 3 роки тому +3

    Why I was not aware of this channel before. The way you teach is awesome. I am really grateful for such awesome videos.

  • @vidhishah9154
    @vidhishah9154 2 роки тому +2

    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.

    • @Pepcoding
      @Pepcoding  2 роки тому +1

      Thank you. Why don't you check out all our content on nados.pepcoding.com?

  • @payalsagar1808
    @payalsagar1808 3 роки тому +4

    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

    • @Pepcoding
      @Pepcoding  3 роки тому

      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 )

  • @deepanshu6576
    @deepanshu6576 3 роки тому +12

    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)

  • @binarybeast2685
    @binarybeast2685 3 роки тому +8

    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!

    • @Pepcoding
      @Pepcoding  3 роки тому +3

      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 )

    • @binarybeast2685
      @binarybeast2685 3 роки тому +1

      @@Pepcoding Already done!! :-D

  • @vishwashdwivedi9469
    @vishwashdwivedi9469 3 роки тому +14

    Clapps for you Sir ! Thanks for making the concept so easy !

    • @Pepcoding
      @Pepcoding  3 роки тому +4

      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
      @ujjwalchauhan6256 Рік тому

      @@Pepcoding sir but this code is giving tle on leetcode

  • @kushsharma7614
    @kushsharma7614 3 роки тому +5

    four years of my engineering, never understood this problem till I watched this video. This is gold.

    • @Pepcoding
      @Pepcoding  3 роки тому +3

      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😊

  • @apurvamilindgaikwad6926
    @apurvamilindgaikwad6926 2 роки тому +2

    And this was exactly what I was looking for! Thank you so much for the wonderful explanation! 😃

  • @rahulbhatia3075
    @rahulbhatia3075 3 роки тому +17

    Woahhh sir finally egg 🥚 drop problem solution is here ❤️❤️🔥🔥

  • @amazinglife5400
    @amazinglife5400 3 роки тому +1

    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 UA-cam watching for this particular problem and here I got my final satisfactory understanding of the problem.

    • @Pepcoding
      @Pepcoding  3 роки тому +1

      keep motivating, keep learning and keep loving Pepcoding😊

  • @aman6561
    @aman6561 3 роки тому +4

    yaad krli hai line.
    jo apne haath me uska best or jo luck pr depend hai uska worst.

    • @Pepcoding
      @Pepcoding  3 роки тому +3

      Ye line to zindagi mei bhi kaam aa sakti hai

    • @aman6561
      @aman6561 3 роки тому +1

      @@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 ..

  • @Karan9.9
    @Karan9.9 7 місяців тому

    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

  • @siddharthsahu8763
    @siddharthsahu8763 3 роки тому +1

    The way you explain dynamic problems is far better than others. Thank you sir😁.

  • @tusharnain6652
    @tusharnain6652 Рік тому

    This is the bestest explanation of any problem on youtube.

  • @arvindersinghvirdi2456
    @arvindersinghvirdi2456 3 роки тому +21

    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 :)

    • @Pepcoding
      @Pepcoding  3 роки тому +6

      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🙏

  • @jadanabil8044
    @jadanabil8044 3 роки тому +7

    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)

  • @ranajithore4879
    @ranajithore4879 2 роки тому

    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!

  • @Radaradababurao
    @Radaradababurao 3 роки тому +4

    40:22 maximum value should be 4 else awesome content

  • @debasishpatnaik294
    @debasishpatnaik294 2 роки тому

    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. !!! :)

  • @swetajha2265
    @swetajha2265 3 роки тому +2

    Very well explained. Kudos to u for putting so much effort!

  • @itsme-z1s
    @itsme-z1s 2 місяці тому

    wonderful explanation I have found in whole youtube. Thank you so muchhhhhhh

  • @kartikeyamishra3325
    @kartikeyamishra3325 3 роки тому +1

    Itne simple way me samjhaya hai..... Hats off 🙏

    • @Pepcoding
      @Pepcoding  3 роки тому +1

      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😊

  • @eziosan7208
    @eziosan7208 Рік тому +1

    The way of explanation. Hats off to you 👏 👏 👏

  • @vedangpandey4703
    @vedangpandey4703 7 місяців тому

    discovering you late but you are a great teacher. you really put the effort in your video. i can see that.

  • @imranwahid9871
    @imranwahid9871 3 роки тому +2

    No one can explain better than you sir. Thanks a lot sir.

    • @Pepcoding
      @Pepcoding  3 роки тому +1

      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_dosee
    @motivational_dosee 2 роки тому +1

    Sir dimag ka dahi ho gya tha...but now the problem is crystal clear.... thanks ❤️❤️

  • @vaibhavjain4710
    @vaibhavjain4710 3 роки тому +7

    I am getting TLE, Can u please make a video on the optimization of the egg dropping problem?

  • @tanaykamath1415
    @tanaykamath1415 2 роки тому

    This channel is soo underrated!!!

  • @094_ramankumar9
    @094_ramankumar9 3 роки тому +1

    Very nice explanation sir

  • @paragroy5359
    @paragroy5359 3 роки тому +1

    Nice explanation sir....thanks a lot for the video....the content on your youtube channel is amazing...

  • @pranavsingh1081
    @pranavsingh1081 2 роки тому

    mza aa gya sir , ye best of the worst ka technique game theory mei bhi padha that Maine , aaj pta chala things are related

    • @Pepcoding
      @Pepcoding  2 роки тому

      Glad you enjoyed it :) For more content like this you can visit nados.pepcoding.com

  • @RajeshSarkar-ud9oj
    @RajeshSarkar-ud9oj 2 роки тому

    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..

  • @ekanshsharma1309
    @ekanshsharma1309 Рік тому

    Thank You so much sir, What an amazing solution. Understand everything

  • @preetgandhi1233
    @preetgandhi1233 3 роки тому

    Aree bhaiyaji agg laga di...ande fodne ka estimate k sath placement mein fodne ka estimation acha lgg rha..:wink emoji inserted.

  • @NewMovieTrailersTransformed
    @NewMovieTrailersTransformed 2 роки тому

    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 .

    • @Pepcoding
      @Pepcoding  2 роки тому

      Glad it helped!
      Keep learning.
      And for better experience, visit nados.io, where you will get well curated content and career opportunities.

  • @siddharthgupta848
    @siddharthgupta848 3 роки тому +2

    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.

  • @srajikagupta3627
    @srajikagupta3627 3 роки тому +5

    Best explanation with a life lesson 🤩

  • @mehak_mits
    @mehak_mits Рік тому

    Best video that explains the concept well.👍

  • @sumansauravpanda1909
    @sumansauravpanda1909 9 місяців тому

    best ever explanation I have seen on UA-cam ❤

  • @balajijangde8470
    @balajijangde8470 2 роки тому

    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

  • @thesurajpatade
    @thesurajpatade 2 роки тому

    Kyaa kamaal padhaate ho aap!! Majaa hi aa gya!!

  • @akanshapriya5392
    @akanshapriya5392 2 роки тому +1

    I can watch these videos the entire day :)

    • @Pepcoding
      @Pepcoding  2 роки тому +1

      Keep learning.
      And for better experience, visit nados.io, where you will get well curated content and career opportunities.

  • @FinanceMode14
    @FinanceMode14 2 роки тому

    thank you so much sir watch only manager question and has gotten the solution of egg dropping

  • @nandankakadiya1494
    @nandankakadiya1494 3 роки тому +1

    Bow down to king absolutely legend 🙏

    • @Pepcoding
      @Pepcoding  3 роки тому +1

      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 )

  • @lord_abhinav
    @lord_abhinav 2 роки тому +1

    Sir, aapki 4:56 wali baat dil pe lagti hai

    • @Pepcoding
      @Pepcoding  2 роки тому

      For better experience and well organised content visit nados.pepcoding.com

  • @mohitsaran9193
    @mohitsaran9193 3 роки тому

    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

  • @Elon-musk-007
    @Elon-musk-007 3 роки тому +1

    Good to see new questions added to platform

  • @ashutoshkumar4565
    @ashutoshkumar4565 Рік тому +1

    48:43 kaun sa agla sawal? optimal strategy for a game??

  • @anubhavagrawal2392
    @anubhavagrawal2392 2 роки тому +1

    Sir you are God for me...

  • @anshikadubey2729
    @anshikadubey2729 3 місяці тому +1

    don't know why so underrated

  • @kartikeysrivastava6473
    @kartikeysrivastava6473 3 роки тому

    tagda bhai...appreciate your effort...

  • @reeshikagrawal2704
    @reeshikagrawal2704 3 роки тому +1

    great explanation..bt this solution is giving tle in leetcode.
    try to use binary search

  • @SandeshMotoVlogs
    @SandeshMotoVlogs 3 роки тому

    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

  • @aparnanaik8181
    @aparnanaik8181 3 роки тому

    Hats off. You are the best teacher on earth !

    • @Pepcoding
      @Pepcoding  3 роки тому +1

      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.

  • @sumitkumarchoudhary58
    @sumitkumarchoudhary58 3 роки тому +3

    @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

    • @anoopkumar8732
      @anoopkumar8732 2 роки тому

      Did you get the answer to why binary search cannot be applied to this question?

    • @rajatchauhan5501
      @rajatchauhan5501 2 роки тому

      you need to have unlimited eggs for that case

    • @samiulkhan3744
      @samiulkhan3744 2 роки тому

      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

  • @piyushsaxena7399
    @piyushsaxena7399 3 роки тому

    sir u explain so great, im enjoying the explanation, how u clear the question as well as the solution and build intution , its really the best we can get on youtube. thanks a lot sir

  • @ramishwarkumar9830
    @ramishwarkumar9830 3 роки тому

    Sir koti koti pranam hai itna acha content dene ke liye.

    • @Pepcoding
      @Pepcoding  3 роки тому

      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 - ua-cam.com/users/Pepcodingplaylists?view_as=subscriber

  • @aishwarya1895
    @aishwarya1895 2 роки тому

    No one literally no one explained in such an easy way ✌️

    • @Pepcoding
      @Pepcoding  2 роки тому +1

      Keep learning and keep motivating.
      For more such exciting content, don't forget to visit nados.pepcoding.com

  • @shivangsingh1227
    @shivangsingh1227 3 роки тому +2

    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.

  • @anonymoussloth6687
    @anonymoussloth6687 3 роки тому

    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?

  • @ashishkhare7587
    @ashishkhare7587 2 роки тому

    God level teaching!! Kudos !!

  • @arijitdey8419
    @arijitdey8419 3 роки тому +1

    Sir u r doing a great job,thank u.Just a question,when will u b continuing with graph questions?

  • @subhajitmanna305
    @subhajitmanna305 3 роки тому

    best explanation till now for this problem.

  • @KuchhBhiLab
    @KuchhBhiLab Рік тому

    simply awesome explanation

  • @aditidey9366
    @aditidey9366 2 роки тому

    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.

    • @yashrajpathak8103
      @yashrajpathak8103 2 роки тому

      can u share ur code?

    • @aditidey9366
      @aditidey9366 2 роки тому

      @@yashrajpathak8103
      class Solution {
      public:
      int superEggDrop(int k, int n) {
      vector dp(k+1,vector(n+1,0));
      for(int i=1; i

    • @yashrajpathak8103
      @yashrajpathak8103 2 роки тому +1

      @@aditidey9366 thanks 😃😃

  • @kunalsingla3128
    @kunalsingla3128 2 місяці тому

    very nice explanation, Thanks Sir

  • @kunalnayak7325
    @kunalnayak7325 2 роки тому

    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??

  • @akshatvyas2594
    @akshatvyas2594 3 роки тому +1

    Great sir, thanks😊.

  • @sameer1571
    @sameer1571 3 роки тому +2

    Sir why we had not apply binary search

  • @Impromptu21
    @Impromptu21 3 роки тому +3

    Sir apne dp main 1st column zero se initialize ni kiya ...app java use krte ho isliye automatically zero assign hua hoga na.

  • @shubhamtalbar
    @shubhamtalbar 3 роки тому

    Best explanation of all the videos, kudos !!

  • @ayushgupta1399
    @ayushgupta1399 2 роки тому +1

    best explanation

  • @skjishanali8204
    @skjishanali8204 3 роки тому

    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❤❤).

    • @Pepcoding
      @Pepcoding  3 роки тому +1

      If you like my efforts, I request a review
      g.page/Pepcoding/review?rc

    • @skjishanali8204
      @skjishanali8204 3 роки тому

      @@Pepcoding Done sir

  • @rohitkumar-qu5jk
    @rohitkumar-qu5jk 3 роки тому +2

    I have a confusion on 40:23 seconds , should not it be Min from (3,3,3,3,4,5,6) + 1 = 4

  • @sommayghosh4617
    @sommayghosh4617 3 роки тому

    great explanation sir as usual just the way you make us understand the problem, there is no need to see the code part!

  • @SonuKhan-mp2yn
    @SonuKhan-mp2yn 9 місяців тому

    no words to appreciate.

  • @ROHITKADYANJI
    @ROHITKADYANJI 2 роки тому

    That is why we love Sumit sir explanation ❣️

    • @Pepcoding
      @Pepcoding  2 роки тому

      Glad you love the explanation, for better experience and well organised content sign up on nados.io and start learning.

  • @pranabsarkar
    @pranabsarkar 3 роки тому

    Pranam Sir, pura confusion dur ho gya!

  • @factswithai2
    @factswithai2 3 роки тому

    badiya sawal tha sir, samajhne mein kaafi maza aaya. East or west sumeet sir is the best

    • @Pepcoding
      @Pepcoding  3 роки тому

      keep motivating and Keep loving😊

  • @kshitijagarwal3230
    @kshitijagarwal3230 3 роки тому +1

    Thanks a lot for your efforts!

    • @Pepcoding
      @Pepcoding  3 роки тому +1

      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 )

  • @naitikverma6586
    @naitikverma6586 3 роки тому +5

    sir this method is giving TLE in leetcode submission

    • @apoorvkrishan1447
      @apoorvkrishan1447 3 роки тому +1

      on leetcode you need to submit O(n*logn*k) solution where as this solution is O(n^2*K) n is the floors and k is the eggs

    • @nitinkumar5974
      @nitinkumar5974 3 роки тому

      Watch Aditya Verma for egg dropping 🔥🔥.. 👍

    • @ankitkumarmahato4318
      @ankitkumarmahato4318 3 роки тому

      @@nitinkumar5974 Both will give TLE on leetcode and InterviewBit. You have to use Binary Search then only it will be accepted.

  • @aasthaaggarwal8909
    @aasthaaggarwal8909 3 роки тому +1

    sir, the explanation is so mesmerizing

    • @Pepcoding
      @Pepcoding  3 роки тому

      Glad to hear that. Keep watching

  • @mr.naresh3004
    @mr.naresh3004 2 роки тому

    noted life lessons epic explanation thankyou so much sir....

  • @raj_kundalia
    @raj_kundalia Рік тому

    crystal clear. thanks!

  • @kushalchakraborty8615
    @kushalchakraborty8615 2 роки тому

    Greatest explanation of all times

    • @Pepcoding
      @Pepcoding  2 роки тому

      Glad to know, for better experience and well organised content sign up on nados.io and start learning.

  • @nikhilkumarjamwal5322
    @nikhilkumarjamwal5322 7 місяців тому

    Nice Explanation!👍

  • @guruvanshsinghbhatia8853
    @guruvanshsinghbhatia8853 3 роки тому

    Maza aa gaya Sir. O(n*k) ka bhi video banao please .

  • @nimishkaran8569
    @nimishkaran8569 3 роки тому +1

    for 5 years i have been searching for that brief explanation..great work..

    • @Pepcoding
      @Pepcoding  3 роки тому

      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
      ua-cam.com/users/Pepcodingabout?view_as=subscriber

    • @naitikverma6586
      @naitikverma6586 3 роки тому

      if you are able to get correct answer by this method please share the solution

  • @baibhavvikas1767
    @baibhavvikas1767 2 роки тому

    this is the best explanation. thank you sir

  • @pranjalpatel256
    @pranjalpatel256 3 роки тому

    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

    • @kashba
      @kashba Рік тому

      Foodi koi company?

    • @pranjalpatel256
      @pranjalpatel256 Рік тому

      @@kashba working as sde 1 at bajaj finserv markets

    • @kashba
      @kashba Рік тому

      @@pranjalpatel256 😎🤝 Badiya bhai
      Mai bhi 6 mahine ke andar andar badiya company fodunga koi

  • @rohansharma4844
    @rohansharma4844 3 роки тому +1

    ❤100/100 teaching.

  • @thirumalaithathachary3111
    @thirumalaithathachary3111 2 роки тому

    Great. Best logical explanation

  • @riyabharti3473
    @riyabharti3473 3 роки тому

    You really make the problem interesting 💯

    • @Pepcoding
      @Pepcoding  3 роки тому +1

      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 )

  • @bhavin6431
    @bhavin6431 3 роки тому

    Excellent explanations !! You are the best mate.

    • @Pepcoding
      @Pepcoding  3 роки тому +1

      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😊

  • @manishpurohit1765
    @manishpurohit1765 3 роки тому

    May to prosper sir.
    Kya gajab samjhate aap