threeal / leetspace

A dedicated workspace and archive for my LeetCode submissions
https://leetcode.com/threeal
MIT License
1 stars 1 forks source link

Solve Problem 485. Max Consecutive Ones #1367

Closed threeal closed 1 month ago

threeal commented 1 month ago

This pull request resolves #1366 by solving the problem 485. Max Consecutive Ones in C++. It solves the problem by simply iterating through the array and counting the consecutive ones.