Max Consecutive Ones — LeetCode

Thank you for visiting this post! Be sure to also take a look at my other work on LinkedIn, Github, and my website.


Please click the link below to view the Problem Statement


The Math.max() function returns the largest of the zero or more numbers given as input parameters, or NaN if any parameter isn't a number and can't be converted into one.

— MDN Web Docs

I had some help solving this algorithm. Please check out Algo Byte on Youtube. She did an amazing job explaining how to tackle this!


Thank you so much for stopping by! Stay tuned for more Algorithm Content!

Please checkout my online portfolio and feel free to connect with me on Linkedin!





Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Bitcoin Trade Automation — Technical Indicator Graph Validation

My journey to become a programmer

CS 371p Spring 2021 Week 8: Noah Galloso

Hooked on Flutter Hooks

Project SEED Weekly Update — Oct 17

Vue The Series — Chapter 2.1: Deploy on Amazon EC2

Two Python Repositories for Text Visualisation

Ep. 22 — Firestore vs. MongoDB+Realm (as of Jun 2020)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Stephanie Segura

Stephanie Segura

More from Medium

AlphaCamp Leetcode 訓練營06. Stack & Queue & Tree — 觀念入門

Interview with Erion Adams, Emerging Tech Developer

Erion Adams

Restore IP Addresses | LeetCode-93: Medium | JavaScript Implementation

Repeat Code with LeetCode: Binary Tree Level Order Traversal