0326. Power of Three
Description
**Input:** n = 27
**Output:** true**Input:** n = 0
**Output:** false**Input:** n = 9
**Output:** true**Input:** n = 45
**Output:** falseac1: iterative
ac2: trick
ac3: math
Last updated