[python 3]
\ndef reorderedPowerOf2(self, N: int) -> bool:\n        c, l = collections.Counter(str(N)), len(str(N))\n        n = 1\n        while len(str(n)) <= l:\n       
```\ndef reorderedPowerOf2(self, N: int) -> bool:\n        c, l = collections.Counter(str(N)), len(str(N))\n        n = 1\n        while len(str(n)) <= l:\n            if collections.Counter(str(n)) == c:\n                return True\n            n *= 2\n        return False\n```
[]