C++ || Easy to Understand || Xor || Masking
class Solution {\npublic:\n\n    int bitwiseComplement(int n) {\n        if(n==0){\n            return 1;\n        }\n        int copy=n;\n        int i=0;\n   
class Solution {\npublic:\n\n    int bitwiseComplement(int n) {\n        if(n==0){\n            return 1;\n        }\n        int copy=n;\n        int i=0;\n        while(copy!=0){\n            copy>>=1;\n            n^=(1<<i);\n            i++;\n        }\n        return n;\n    }\n};
['Bit Manipulation', 'C', 'Bitmask', 'C++']