✅100% Faster || C++ Solution || Easy-understanding || Simple
\nclass Solution {\npublic:\n    \n        vector<int> gem(long int n) {\n        vector<int>nums(10);\n        \n        while(n){\n            nums[n%10]++;\n
```\nclass Solution {\npublic:\n    \n        vector<int> gem(long int n) {\n        vector<int>nums(10);\n        \n        while(n){\n            nums[n%10]++;\n            n=n/10;\n        }\n        return nums;\n    }\n    bool reorderedPowerOf2(int n) {\n        vector<int>arr=gem(n);\n        for(int i=0;i<31;i++){\n            if(arr==gem(1<<i)){\n                return true;\n            }\n        }\n        return false;\n    }\n    \n};\n```
['C', 'C++']