← All problemsSign in

Help Golu!

Golu is given a box containing N + 1 Locks each having some number written on them and N keys also having some number written on them. A Lock can be unlocked only with the Key having same number on it as written on Lock. He needs to find the lock number which will be left unlocked as it is given that there is only 1 Lock left unlocked in the box . ###Input: - First line will contain Box size i.e.

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