AlgoMaster Logo

Max Consecutive Ones

nums=[1, 1, 0, 1, 1, 1]
0 / 38
algomaster.io
Step:Start: try every index as the start of a run of ones