← All problemsSign in

Inception

Now you're in inception and you have to build a city in which the dream can take place. The city to be built is given as a string you have to find repetitive pattern in the design of the city so as to improve the simplicity of the design however you feel that the design would be scalable if you find out all the repetitive patterns in the string. A repetitive pattern of a string is a prefix of the

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