Problem 1784 · Easy
Check whether a binary string has at most one contiguous segment of ones.
Open the interactive visualisation