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