Circular Permutations
CodeChefOpen on judge ↗
2^N binary digits can be placed in a circle so that all the N-digit clockwise subsequences are distinct. For N=3, two such circular arrangements are possible, ignoring rotations: 0 1 0 1 0 1 1 0 0 1 0 0 0 1 1 1 For the first arrangement, the 3-digit subsequences, in clockwise order, are: 000, 001, 010, 101, 011, 111, 110 and 100. Each circular arrangement can be encoded as a number by concatena
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