Koko Eating Bananas (LeetCode 875) | Full solution with beautiful diagrams and visualizations
Vložit
- čas přidán 27. 07. 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
You have a god gifted talent of explaining things in a simple manner, this is sign of a true teacher, thank you so much 🙏.
Thank you Nikhil for the great work and explanation about data structures and algorithms, I have reviewed a few CZcams videos and found you are the best!
greatly appreciated!! 😄
Bro has the best explanations they stick with you forever
Glad you think so!
I could never wrap my head around this one. Thank you so much Nikhil!
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.
Love the way you teach❤
Good Explanation and visualization!
Appreciate all the efforts you have taken to explain and solve the problem... Good job bro!
You are most welcome
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?
Sir your content is amazing but just do something with your audio as your audio sounds too low . Kindly do something for this !
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