Zero String
You are given a binary string $S$ of length $N$. You are allowed to perform the following types of operations on string $S$: - Delete any **one** character from $S$, and concatenate the remaining parts of the string. For example, if we delete the third character of $S = 1101$, it becomes $S = 111$. - Flip all the characters of $S$. For example, if we flip all character of $S = 1101$, it becomes $S
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