JPMorgan Chase logoJPMorgan Chase
Coding·60 minMembers

Grouped Binary Substrings

Members only

Count substrings of a binary string where the number of `0`s equals the number of `1`s and all `0`s and all `1`s appear in two contiguous groups, such as `000111`, `111000`, `01`, or `10`.

SWE
RS
binary-string
string
string-processing
oa
easy
Frequency
Low
Last asked
2026-03-14
Stage
oa

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...