← All problemsSign in

Panda loves strings

Panda's father gave him a string P consisting of lowercase English alphabets. Panda's mother has given him a number x. Now Panda generates all possible strings of length x consisting of lowercase English alphabets. For each such string he generates, he inserts all the characters of the generated string in the string P . He is allowed to insert at any position of the string. Now a new string Z is f

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start