Max Consecutive Ones (LeetCode 1004) | Full Solution w/ animations

  Рет қаралды 1,935

Nikhil Lohia

Nikhil Lohia

Күн бұрын

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

Пікірлер: 14
@debashismahapatra5961
@debashismahapatra5961 Ай бұрын
underrated channel. Amazing content !
@psapr89
@psapr89 2 ай бұрын
Excellent, loved your explanation Nikhil.
@suvadipghosh1385
@suvadipghosh1385 2 ай бұрын
Always find your explanation fantastic ❤
@abhishekpandit9024
@abhishekpandit9024 23 күн бұрын
fantastic video, loved the explanation
@ganeshjaggineni4097
@ganeshjaggineni4097 13 күн бұрын
NICE SUPER EXCELLENT MOTIVATED
@Homelander_30
@Homelander_30 2 ай бұрын
Will you provide DSA sheet?
@nikoo28
@nikoo28 2 ай бұрын
what content are you guys looking for in a DSA sheet? That will help me to curate it even better.
@Homelander_30
@Homelander_30 2 ай бұрын
@@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.
@ZeyadTallalMoharam
@ZeyadTallalMoharam 2 ай бұрын
Also a sorting for your problem videos by topics can be so helpful
@Homelander_30
@Homelander_30 2 ай бұрын
@@ZeyadTallalMoharam yep!! Only your videos are more understanding and able to think myself.
@Abhishek-Khelge
@Abhishek-Khelge Ай бұрын
@@nikoo28 based on your experience , list of questions covering differs types/pattern
@ridj41
@ridj41 Ай бұрын
How to execute the naive solution? I mean how to even try it out just asking for interview point of view
@nikoo28
@nikoo28 Ай бұрын
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.
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 6 МЛН
MEGA BOXES ARE BACK!!!
08:53
Brawl Stars
Рет қаралды 36 МЛН
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 54 МЛН
MAX CONSECUTIVE ONES III | LEETCODE 1004 | PYTHON SOLUTION
8:30
Cracking FAANG
Рет қаралды 9 М.
Two Sum | LeetCode 1 | JavaScript | Easy
13:20
Gordon Zhu
Рет қаралды 8 М.
LeetCode Max Consecutive Ones III Solution Explained - Java
6:31
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 6 МЛН