Oneline C++ Solution
~~For some strange reason when I submit it fails the last test case,but if you run that test on its own in the custom testcase it passes. So I think something i
~~For some strange reason when I submit it fails the last test case,but if you run that test on its own in the custom testcase it passes. So I think something is wrong with the testing.~~\n\n```class Solution {\npublic:\n    int findComplement(int num) {\n        return ~num & ((1 <<(int)log2(num))-1);\n    }\n};
[]