[C#]Is anyone try this....


  • 0
    L
    public bool IsPowerOfThree(int n) {
                int result;
                return int.TryParse(Math.Log(n, 3).ToString(),out result);
     }
    

Log in to reply
 

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