EASY 6 line C++ code|| Beginner friendly || bitwise
class Solution {\npublic:\n    bool reorderedPowerOf2(int n) {\n      string s=to_string(n);\n        sort(s.begin(),s.end());\n        do{\n            if( s[0
class Solution {\npublic:\n    bool reorderedPowerOf2(int n) {\n      string s=to_string(n);\n        sort(s.begin(),s.end());\n        do{\n            if( s[0]==\'0\') continue;\n          int k=stoi(s);\n            if(!(k&k-1)) return true;\n        }while(next_permutation(s.begin(),s.end()) );\n            return false;\n    }\n};\n*Upvote if you liked the solution*
[]