Binary Cipher
CodeChefOpen on judge ↗
Avnish likes to protects his files with PIN. Now he is good with bits. Abhishek comes to know that he stores the keys in a flash drive. When he opens the flashdrive he finds a txt file where he found the following text written. " First part of my PIN is a number which is the closest number greater than the key with same no of 1's as the key. The second part of my PIN is a number, closest to and s
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.
Sign in to chat with the tutor and save your progress.
Sign in to start