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 很賤的, 誰問誰賤
如下為循環(huán)算法
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 很賤的, 誰問誰賤
如下為循環(huán)算法