← All problemsSign in

Unlock the Lock

Amy and Rosa have been assigned a celebrity murder case. When they reach the celebrity's house they find the lock has to be opened by using only a Beautiful String. Now Rosa starts guessing various strings and it becomes Amy's job to determine whether any part of the string is beautiful or not. (Here part means Substring of the given string). Let's call the string beautiful if it does not cont

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