CodingReported in a candidate post, Aug 2021
Compare max consecutive 1s versus max consecutive 0s in binary string
Filed under Arista Networks
The question
Write code to check if the maximum number of consecutive 1s in a given binary string is strictly greater than the maximum number of consecutive 0s.
No write-up yet. Related questions below have one.
Related Arista Networks questions
Collected from public candidate posts and coding forums. Updated Nov 2026.