Hash Table
869. Reordered Power of 2
Can n's digits be rearranged (no leading zero) into a power of two? The key reframing: rearranging digits doesn't change the multiset of digits, so two numbers are digit-permutations of each other…
Loading…
Can n's digits be rearranged (no leading zero) into a power of two? The key reframing: rearranging digits doesn't change the multiset of digits, so two numbers are digit-permutations of each other…
Loading…