Max Consecutive Ones (LeetCode 1004) | Full Solution w/ animations
Vložit
- čas přidán 6. 07. 2024
- Join this channel to get access to perks: / @nikoo28
Actual problem on LeetCode: leetcode.com/problems/max-con...
Chapters:
00:00 - Intro
00:52 - Problem Statement
03:05 - Brute Force Method
03:42 - Efficient Solution
10:50 - Dry-run of Code
13:33 - Final Thoughts
📚 Links to topics I talk about in the video:
Max Consecutive Elements I: • Max Consecutive Ones (...
Array Data Structure: • Array Data Structure e...
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
underrated channel. Amazing content !
fantastic video, loved the explanation
Excellent, loved your explanation Nikhil.
Always find your explanation fantastic ❤
NICE SUPER EXCELLENT MOTIVATED
How to execute the naive solution?
I mean how to even try it out just asking for interview point of view
that will be multiple for loops, in an interview you must not waste your time trying to implement a brute force solution. You will just end up with less time for the actual solution and meaningful questions.
Will you provide DSA sheet?
what content are you guys looking for in a DSA sheet? That will help me to curate it even better.
@@nikoo28 beginner to advance. Understanding patterns. if you 10 problems in array first 5 problem should be a pattern recognition and last 5 is able to solve by myself with my own thinking and brainstorm. It will be help full.
Also a sorting for your problem videos by topics can be so helpful
@@ZeyadTallalMoharam yep!! Only your videos are more understanding and able to think myself.
@@nikoo28 based on your experience , list of questions covering differs types/pattern