C++ Easy Solution of Vector
\nclass Solution {\npublic:\n    vector<int> Helper(long n){\n        vector<int>num(10);\n        \n        while(n){\n            num[n%10]++;\n            n=
```\nclass Solution {\npublic:\n    vector<int> Helper(long n){\n        vector<int>num(10);\n        \n        while(n){\n            num[n%10]++;\n            n=n/10;\n        }\n        return num;\n    }\n    bool reorderedPowerOf2(int n) {\n        vector<int>v=Helper(n);\n        for(int i=0;i<31;i++){\n            if(v==Helper(1<<i)){\n                return true;\n            }\n        }\n        return false;\n    }\n};\n```\n# **Please share and Upvote it keeps me motivated**
['C', 'C++']