Simple Python  check upto 2 power 30
\n    def reorderedPowerOf2(self, N):\n        c1 = Counter(str(N))\n        for i in range(30):\n            n = int(math.pow(2, i))\n            if Counter(st
```\n    def reorderedPowerOf2(self, N):\n        c1 = Counter(str(N))\n        for i in range(30):\n            n = int(math.pow(2, i))\n            if Counter(str(n)) == c1: return True\n        return False\n```
[]