← All problemsSign in

Unlock Secrets or Leonardo

The Second Italian War of 1499 has started and the French troops have attacked Milan. Leonardo Da Vinci is worried for the safety of his diary where he keeps the secrets of all his creations. He would never want that diary to get into the hands of the French King. For this, he creates a special box which can only be opened if you enter a special key K. K is an N - 1 length string containing only l

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