Day 4 of 31-Day May LeetCode Challenge
1 min readMay 4, 2020
--
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation.
--
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation.