Super Pow

Continue reading “Leetcode: Super Pow”

Given an integer, write a function to determine if it is a power of two.

Continue reading “Leetcode: Power of Two”

Given an integer, write a function to determine if it is a power of three.

Continue reading “Leetcode: Power of Three”

Given an integer (signed 32 bits), write a function to check whether it is a power of 4.

Continue reading “Leetcode: Power of Four”