C++ || short and 100% fast
\nclass Solution {\npublic:\n    bool reorderedPowerOf2(int n)\n    {\n        string nn = to_string(n);\n        \n        sort(nn.begin(), nn.end());\n       
```\nclass Solution {\npublic:\n    bool reorderedPowerOf2(int n)\n    {\n        string nn = to_string(n);\n        \n        sort(nn.begin(), nn.end());\n        \n        for (int i = 0; i < 32; i++)\n        {\n            string pp = to_string(1 << i);\n            \n            sort(pp.begin(), pp.end());\n            \n            if (pp == nn)\n                return true;\n        }\n        \n        return false;\n    }\n};\n```
[]