网站地图

Write a function to find the maximum number of consecutive 1s in a binary array.

2025-09-01 12:00

def find_max_consecutive_ones(nums): max_count = 0 current_count = 0 fo...

1