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

Sdílet
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

Komentáře • 14

  • @debashismahapatra5961
    @debashismahapatra5961 Před měsícem +1

    underrated channel. Amazing content !

  • @abhishekpandit9024
    @abhishekpandit9024 Před 17 dny

    fantastic video, loved the explanation

  • @psapr89
    @psapr89 Před 2 měsíci

    Excellent, loved your explanation Nikhil.

  • @suvadipghosh1385
    @suvadipghosh1385 Před měsícem

    Always find your explanation fantastic ❤

  • @ganeshjaggineni4097
    @ganeshjaggineni4097 Před 7 dny

    NICE SUPER EXCELLENT MOTIVATED

  • @ridj41
    @ridj41 Před měsícem

    How to execute the naive solution?
    I mean how to even try it out just asking for interview point of view

    • @nikoo28
      @nikoo28  Před měsícem

      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.

  • @arunvasu30
    @arunvasu30 Před 2 měsíci +1

    Will you provide DSA sheet?

    • @nikoo28
      @nikoo28  Před 2 měsíci +1

      what content are you guys looking for in a DSA sheet? That will help me to curate it even better.

    • @arunvasu30
      @arunvasu30 Před 2 měsíci +1

      @@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 Před 2 měsíci +2

      Also a sorting for your problem videos by topics can be so helpful

    • @arunvasu30
      @arunvasu30 Před 2 měsíci +1

      @@ZeyadTallalMoharam yep!! Only your videos are more understanding and able to think myself.

    • @Abhishek-Khelge
      @Abhishek-Khelge Před měsícem +2

      @@nikoo28 based on your experience , list of questions covering differs types/pattern