Identify which bit positions hold a value that repeats in the binary representation.
Constraints
Example
>>> duplicate_bits(5) [2, 0] >>> duplicate_bits(4) [1, 0] >>> duplicate_bits(7) [2, 1, 0] >>> duplicate_bits(1) []
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints