美文网首页
326. Power of Three

326. Power of Three

作者: 我是你的果果呀 | 来源:发表于2016-12-03 09:19 被阅读0次

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

      本文链接:https://www.haomeiwen.com/subject/jyxcmttx.html