Given an integer n, return true if n is a power of four. Otherwise, return false.
A number is a power of four if there exists an integer x such that n = 4^x.
Note: Follow up: can you solve it without using loops or recursion?
Constraints:
n
Given an integer n, return true if n is a power of four. Otherwise, return false.
A number is a power of four if there exists an integer x such that n = 4^x.
Note: Follow up: can you solve it without using loops or recursion?
Constraints:
n