Pepper and Iron Man
CodeChefOpen on judge ↗
Pepper loves Iron Man very much. She does want Iron Man to go and fight with Thanos. So she gave a task to iron man. The task is as follows: 1. Iron man has been given two string $s1$, $s2$ and a string $p$ initially equal to $s2$. 2. He can concatenate string $s2$ to string $p$ any number of time. 3. He has to form string $p$, such that string $s1$ becomes the sub-sequence of $p$. Iron man is i
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