0869. Reordered Power of 2
https://leetcode.com/problems/reordered-power-of-2
Description
You are given an integer n
. We reorder the digits in any order (including the original order) such that the leading digit is not zero.
Return true
if and only if we can do this so that the resulting number is a power of two.
Example 1:
Example 2:
Example 3:
Example 4:
Example 5:
Constraints:
1 <= n <= 109
ac
Last updated