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? 这个follow up 很贱的, 谁问谁贱
如下为循环算法
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? 这个follow up 很贱的, 谁问谁贱
如下为循环算法