leetle

Daily challenge for 2025-10-01

274. Max Consecutive Ones

Given a binary array nums, return the maximum number of consecutive 1s in the array.

Example:
Input: nums = [1,1,0,1,1,1]
Output: 3

Run this challenge interactively in Python or JavaScript when the app loads.