← All problemsSign in

Digit Lock

You have a 3-digit number lock each digit can have N numbers from 0 to N-1 but it need not be in order (Like in a normal 3-digit number lock we have digits 0 to 9, here we will have numbers from 0 to N-1). example if N=5 the first digit can be in the order 2 4 1 3 0 and similarly the other two digits can also have different permutation. As in a number lock each digit can be rotated in any directi

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