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 很贱的, 谁问谁贱
如下为循环算法
本文标题:326. Power of Three
本文链接:https://www.haomeiwen.com/subject/jyxcmttx.html
网友评论