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.