326. Power of Three

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 很贱的, 谁问谁贱

如下为循环算法

326. Power of Three_第1张图片

你可能感兴趣的:(326. Power of Three)