Total Accepted: 18416
Total Submissions: 52117
Difficulty: Easy
Given an integer, write a function to determine if it is a power of three.
Follow up:
Could you do it without using any loop / recursion?
Java:
1 | public class Solution { |
更好的当然是这个了
1 | public class Solution { |