Urgent Task
CodeChefOpen on judge ↗
Red has sabotaged the Reactor. You ran there and had to fix the sabotage by doing a task. The task is as follows : You have a bag of strings, initially containing only one Null/empty string with $id$ $=$ $0$. You are given $Q$ queries. You have to process these queries and answer them accordingly. A query can be of two type : $(1)$. $1$ $str$ $ch$, you form a new string with $id$ = $number$ $of$
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