โ† HSBC questions
CodingEasy

Find length of contiguous ones in a binary string

Filed under HSBC

Given a binary string, find the length of the longest contiguous sequence of '1's.

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 HSBC questions

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