L -24 Koko Eating Bananas Binary Search | Java plus DSA Placement | FAANG | Leetcode 875

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 24

  • @shashwat_tiwari_st
    @shashwat_tiwari_st  Год назад +2

    Watch at 1.25x for better experience

  • @sonalpriya1742
    @sonalpriya1742 5 месяцев назад +2

    Thanku sir, this is best explanation of the solution. and the best part is you do live coding , instead of explaining a code snippet.

  • @DevanshSaxena-wz3op
    @DevanshSaxena-wz3op Год назад +1

    Very nice explanation

  • @govindkumarsingh140
    @govindkumarsingh140 Год назад +1

    Nice explanation

  • @PiyushSharma-we8yd
    @PiyushSharma-we8yd Год назад +2

    day 7 done #junecodechallengewithshashwat

  • @aishwaryasingla2781
    @aishwaryasingla2781 3 месяца назад

    why don't we take the total sum and then check if answer = (total /mid )+ total % mid

    • @shashwat_tiwari_st
      @shashwat_tiwari_st  3 месяца назад

      No it won't work, Question has the below statement as well. Hence how will you handle this?
      "If the pile has less than k bananas, she eats all of them instead and will not eat any more bananas during this hour."

  • @Yolov-o5g
    @Yolov-o5g Год назад +1

    Day 7 challenge completed #junecodechallengewithshashwat

  • @shubhamgupta8248
    @shubhamgupta8248 Год назад +1

    Can you tell me where i could be missing out!

  • @Priyew
    @Priyew Год назад +1

    Day - 7 completed #junecodechallengewithshashwat

  • @djb155
    @djb155 2 месяца назад

    Great

  • @harshagrawal1189
    @harshagrawal1189 Год назад +1

    Day 7 completed
    #junecodechallengewithshashwat

  • @shubhamgupta8248
    @shubhamgupta8248 Год назад +1

    Same ques get stucked for test case -108
    TLE

  • @janvikumari255
    @janvikumari255 Год назад +1

    bhaiya nice explanation but why start is 1 and not 0 ?

    • @shashwat_tiwari_st
      @shashwat_tiwari_st  Год назад +2

      If we keep start as 0 then there may be some test case where my mid will become 0.[ this is because mid can be any value in between start and end].
      Now if mid becomes 0, we will get Divide by zero error.

  • @NishantPandat-l3q
    @NishantPandat-l3q 9 месяцев назад

    jai ho placement baba ki...

  • @govindkumarsingh140
    @govindkumarsingh140 Год назад +1

    Sir mene questions toh kiye hai dsa ke basics ke but me iss tarah ke questions me fas saa jaata hu ese me mujhe kya karna chaiye sir pls guide me

    • @shashwat_tiwari_st
      @shashwat_tiwari_st  Год назад

      Yeh question ek pattern pr based hai, binary Search on answer concept. Lecture 23, 24, 25, 26. Yeh 4 videos dekh lo. Sare concepts smjh aa jaenge. Phir iss pattern ke sare questions solve ho jaenge

  • @kunalsarpal7564
    @kunalsarpal7564 4 месяца назад +1

    Sir -> ( piles =
    [805306368,805306368,805306368]
    h =
    1000000000
    Use Testcase
    Output
    1
    Expected)
    3 one test case is failed;

    • @shashwat_tiwari_st
      @shashwat_tiwari_st  4 месяца назад

      Kuch galat kr rhe Hoge. Mera work kr rha hai same code pr. Ans is 3.

  • @nandanm6009
    @nandanm6009 Год назад +2

    Bro I need ur help can I get ur mail id