Koko Eating Bananas (LeetCode 875) | Full solution with beautiful diagrams and visualizations

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ค. 2024
  • Join this channel to get access to perks: / @nikoo28
    Actual problem on LeetCode: leetcode.com/problems/koko-ea...
    Chapters:
    00:00 - Intro
    00:44 - Problem Statement
    01:36 - Vizualization
    08:25 - Brute Force Method
    11:23 - Using Binary Search
    16:53 - Dry-run of Code
    19:40 - Final Thoughts
    📚 Links to topics I talk about in the video:
    Array Data Structure: • Array Data Structure e...
    Binary Search: • Binary Search Algorith...
    Divide and Conquer: • Divide and Conquer alg...
    What is Big O?: • Big O Notation Simplif...
    Time Complexity of an algorithm: • What is the Time Compl...
    Other Problems on Arrays: • Arrays
    📘 A text based explanation is available at: studyalgorithms.com
    Code on Github: github.com/nikoo28/java-solut...
    Test-cases on Github: github.com/nikoo28/java-solut...
    📖 Reference Books:
    Starting Learn to Code: amzn.to/3sJm8Wl
    Favorite book to understand algorithms: amzn.to/4848xJH
    Favorite book for data structures: amzn.to/3P96YBv
    Get started for interview preparation: amzn.to/44Nn5du
    🔗 To see more videos like this, you can show your support on: www.buymeacoffee.com/studyalg...
    🎥 My Recording Gear:
    Recording Light: amzn.to/3PdsViT
    Microphone: amzn.to/3Exv83x
    Recording Camera: amzn.to/3PwyN8e
    Tablet to sketch and draw: amzn.to/3ZdKVy7
    Sketching Tool: amzn.to/45XJEgY
    Laptop to edit videos: amzn.to/460ofDu
    💻 Get Social 💻
    Follow on Facebook at: / studyalgos
    Subscribe to RSS feeds: studyalgorithms.com/feed/
    Join fan mail: eepurl.com/g9Dadv
    #leetcode #programming #interview

ความคิดเห็น • 14

  • @pt_2003
    @pt_2003 12 วันที่ผ่านมา +1

    You have a god gifted talent of explaining things in a simple manner, this is sign of a true teacher, thank you so much 🙏.

  • @mariapaderina5992
    @mariapaderina5992 2 หลายเดือนก่อน +4

    Thank you Nikhil for the great work and explanation about data structures and algorithms, I have reviewed a few TH-cam videos and found you are the best!

    • @nikoo28
      @nikoo28  2 หลายเดือนก่อน +2

      greatly appreciated!! 😄

  • @ousmanbah10
    @ousmanbah10 หลายเดือนก่อน +1

    Bro has the best explanations they stick with you forever

    • @nikoo28
      @nikoo28  หลายเดือนก่อน

      Glad you think so!

  • @SundarS_writeS
    @SundarS_writeS หลายเดือนก่อน +1

    Thank you for the excellent explanation! I have a request: could you please prepare a DSA (Data Structures and Algorithms) sheet? List all the important DSA topics and commonly asked interview questions, and then create a playlist so we can follow the sheet and revise.

  • @Kitchen-Raccoon4572
    @Kitchen-Raccoon4572 หลายเดือนก่อน

    I could never wrap my head around this one. Thank you so much Nikhil!

  • @amishpandya2120
    @amishpandya2120 2 หลายเดือนก่อน

    Love the way you teach❤

  • @venpul244
    @venpul244 2 หลายเดือนก่อน

    Appreciate all the efforts you have taken to explain and solve the problem... Good job bro!

    • @nikoo28
      @nikoo28  หลายเดือนก่อน

      You are most welcome

  • @dagmawisamson7802
    @dagmawisamson7802 หลายเดือนก่อน

    Good Explanation and visualization!

  • @floatingfortress721
    @floatingfortress721 5 วันที่ผ่านมา

    Wait... Isn't the time complexity of the optimal solution O(n.lgM), where n = piles.length and M = max(piles) is the size of the search range?

  • @fortunefunda4171
    @fortunefunda4171 2 หลายเดือนก่อน

    Sir your content is amazing but just do something with your audio as your audio sounds too low . Kindly do something for this !

    • @nikoo28
      @nikoo28  2 หลายเดือนก่อน

      In this video as well? I know there was a concern in my older videos.
      Let me know if these latest videos still feel low