leetcode 326. Power of Three 3的幂指数 + 对数函数实现

Given an integer, write a function to determine if it is a power of three.java Follow up: Could you do it without using any loop / recursion?ios 最直接的方法是使用log函数,还有一个从网上看到的别的方法,也能够,不过很难想。web 建议和这一道题leet
相关文章
相关标签/搜索