Copy and Push Back
Anton loves creating strings! Anton now wants to create a string $S$ following some specific rules. They are as follows: Initially, $S$ is empty. Then, Anton can perform two types of operations on $S$: 1. Choose a lowercase Latin character (an element of $\{a, b, c, \ldots, z\}$) and append it to $S$. For example, if currently $S = \texttt{clap}$, Anton can turn it into one of $\{\texttt{clapa},
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