@@ -0,0 +1,599 @@
+%22%22%22%0A362. Power of Three%0Ahttps://leetcode.com/problems/power-of-three/description/%0AGiven an integer, write a function to determine if it is a power of three.%0A%0AFollow up:%0ACould you do it without using any loop / recursion?%0A%22%22%22%0A%0Aclass Solution(object):%0A    def isPowerOfThree(self, n):%0A        %22%22%22%0A        :type n: int%0A        :rtype: bool%0A        %22%22%22%0A        if n == 0:%0A            return False%0A        # All powers of 3 will have x as an integer where x = log n to the base 3%0A        log_n = math.log(n)/math.log(3)%0A        if float(log_n).is_integer():%0A            return True%0A            %0A        %0A

Create 362_power_three.py