โ† Cognizant questions
CodingModerateReported in a candidate post, Nov 2025

Find Max Consecutive Ones

Filed under Cognizant

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

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Cognizant questions

Collected from public candidate posts and coding forums. Updated Nov 2026.