String protocol
An input string $S$ of length $N$ is transferred through the network using a special protocol. The protocol can send the string through a series of operations. In one operation, we can choose a lowercase english alphabet $C$ and do **one** of the following: - Transfer $1$ copy of $C$ through the network. - Transfer $2$ copies of $C$ through the network. Each of the above transfers take $1$ unit
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