[JAVA] Simple solution
\nclass Solution {\n    public boolean reorderedPowerOf2(int n) {\n        char[] num = getArr(n);\n        for (int i = 0; i < 30; ++i) {\n            char[] p
```\nclass Solution {\n    public boolean reorderedPowerOf2(int n) {\n        char[] num = getArr(n);\n        for (int i = 0; i < 30; ++i) {\n            char[] powerOfTwo = getArr(1 << i);\n            if (Arrays.equals(num, powerOfTwo))\n                return true;\n        }\n        return false;\n    }\n\n    public char[] getArr(int n) {\n        char[] digits = String.valueOf(n).toCharArray();\n        Arrays.sort(digits);\n        return digits;\n    }\n}\n```
[]