Derived string
CodeChefOpen on judge ↗
Alice has two non-empty strings, a string $S_1$ made up of lower case alphabets and another string $S_2$ which is binary consisting of only two characters $0$ and $1$. A string $S$ is called derived from two strings $a_0$ and $a_1$ with respect to a binary string $B$ if $S=a_{B_0}+a_{B_1}+a_{B_0}....+a_{B_i}+.....+a_{B_b}$, Where $b$ is the length of the binary string $B$ and $B_i$ is the $i^{th}$
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