filmov
tv
869. Reordered Power of 2|Aug Leetcode Challenge Solutions|Easy |Python Dictionary| Code+Explanation

Показать описание
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.
Input: n = 1
Output: true
Input: n = 10
Output: false