I\'m working on the "Power Of Three" problem on leetcode, and came up with the solution below. It ran a lot slower than I expected, I\'m wondering how log10 is imp