Binary numbers
CodeChefOpen on judge ↗
As you know, Mohan is not good in mathematics and bit manipulation technique.His teacher give him a problem of splitting numbers.The problem is as follows :- We define the operation of splitting a binary number of n bits into two numbers A(n),B(n) as follows. Let i1 2 ... k be the indices of the bits that are 1 in binary number(starting from Least significant bits). Then the indices of the bits o
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