[C++] all can form except next 2kipower
Intuition\ncrazy\n\n# Approach\njust every 2^x add 1left bit \nso,\nall can form except next 2kipower \neg.. 1 2 4 can form all till 7\n# Code\n\nclass Solution
# Intuition\ncrazy\n\n# Approach\njust every 2^x add 1left bit \nso,\nall can form except next 2kipower \neg.. 1 2 4 can form all till 7\n# Code\n```\nclass Solution {\npublic:\n    int minImpossibleOR(vector<int>& nums) \n    {\n        sort(nums.begin(),nums.end());\n        unordered_map<int,int> m;\n        \n        for(auto e:nums) \n        {\n            m[e]++;\n        }\n        int twokipower=1;\n        for(auto e:nums)\n        {\n            if(m.find(twokipower)==m.end())\n            {\n                return twokipower;\n            }\n            twokipower*=2;\n        }\n        return twokipower;\n    }\n};\n\n```
['C++']