← All problemsSign in

Non Repeating Binary

CodePlex - Pramana 2018 Problem description. Our competition has created a new lock that opens simply by properly raising and lowering a lever the right number of times, then pressing a button. They’ve encoded their combination as a series of decimal digits. When the digits are gathered in the right combinations, the BINARY representation of the number is an alternating series of 1 and 0. For ex

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