Easy + Short + Understandable code in C++ ||
using compare function for removing 0 as first digit\n\nstatic bool com(char a,char b){\n        return a>b;\n    }\n    bool reorderedPowerOf2(int N) {\n      
#using compare function for removing 0 as first digit\n```\nstatic bool com(char a,char b){\n        return a>b;\n    }\n    bool reorderedPowerOf2(int N) {\n       string s= to_string(N);\n        int n=s.size();\n        int k=1;\n        string p;\n        sort(s.begin(),s.end(),com);\n        while(n>=p.size())\n        {\n            p=to_string(k);\n            sort(p.begin(),p.end(),com);  //sort every power of twofor checking \n            if(s==p)\n                return 1;\n            k=k<<1; //using for finding next power of two\n        }\n        return 0;\n        \n    }\n```
['C']