@@ -0,0 +1,277 @@
+package leetcode;%0A%0A/**%0A * https://leetcode.com/problems/power-of-three/%0A */%0Apublic class Problem326 %7B%0A    public boolean isPowerOfThree(int n) %7B%0A        double val = Math.log10(n) / Math.log10(3);%0A        int truncVal = (int) val;%0A        return (val - truncVal) == 0;%0A    %7D%0A%7D%0A

Solve problem 326