Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.

Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).

input 0,why should return false?

Did I understand it wrong?

3 to the power of 0 = 1

so 1 is a valid answer

yes,3**n>=1,log(n,3)>0.while n==0 ,should return False

3^0 = 1 3^1 =3 3^2 = 9..... no 3^? =0 so you get?

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.