Find the Longest Consecutive Run of Ones

Read the full interview experience this question came from →

Quick Overview

Find the longest contiguous run of ones in a binary array under an explicit no-flips assumption. The prompt fixes empty-input behavior, a portable scalar return value, and two examples for later four-language console verification.

Find the Longest Consecutive Run of Ones

Company: Molocoads

Role: Machine Learning Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

Overview: Find the longest contiguous run of ones in a binary array under an explicit no-flips assumption. The prompt fixes empty-input behavior, a portable scalar return value, and two examples for later four-language console verification.

Read the full Molocoads Machine Learning Engineer interview experience this question came from

|Home/Coding & Algorithms/Molocoads
Molocoads logo
Molocoads
Aug 26, 2026
mediumMachine Learning EngineerOnsiteCoding & Algorithms
0
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...