Given an integer n, determine whether it is a power of three. Return TRUE if it is, and FALSE otherwise.
An integer n is considered a power of three if there exists an integer x such that n
Note: Could you solve it without using loops or recursion?
Constraints:
n
Given an integer n, determine whether it is a power of three. Return TRUE if it is, and FALSE otherwise.
An integer n is considered a power of three if there exists an integer x such that n
Note: Could you solve it without using loops or recursion?
Constraints:
n