bugl
Home
Learn
Patterns
Paths
Search
Premium
Auto
Home
Learn
Patterns
Paths
Easy
Arrays & Hashing
LC 485
Max Consecutive Ones
Given a binary array nums, return the maximum number of consecutive 1's in the array.
Asked at 3 companies
Amazon
Google
Microsoft
Hints
1.
Think about which data structure fits best
2.
Consider the time complexity of your approach
3.
Look for patterns in the constraints
Start Puzzle
LeetCode