326 Power of Three
326. Power of Three
1. Question
Given an integer, write a function to determine if it is a power of three.
Follow up: Could you do it without using any loop / recursion?
2. Implementation
3. Time & Space Complexity
时间复杂度O(logn), 空间复杂度O(1)
Last updated