Search⌘ K
AI Features

Count Binary Substrings

Count Binary Substrings asks you to count non-empty substrings of a binary string that have equal numbers of zeros and ones, with each character grouped contiguously.

Statement

Given a binary string s, return the count of non-empty substrings that ...