Good Binary String
A binary string $S$ is said to be *good*, if there exist some $k$ binary strings $P_1, P_2, \ldots, P_k$ such that: - $S = P_1 + P_2 + \ldots + P_k$. Here, $+$ denotes string concatenation. - Each $P_i$ has even length. - Each $P_i$ contains only a single distinct character. For example, $1100, 11, $ and $11000011$ are all *good*, while $1, 1001, $ and $101010$ are not. You are given a binar
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start