[LeetCode]3的幂

这题的两个坑应该就是小于等于0的用例了,注意规避仍是能够的。java 问题连接:https://leetcode-cn.com/explore/interview/card/top-interview-questions-easy/25/math/62/code 代码:leetcode public boolean isPowerOfThree(int n) { if(n<=0){
相关文章
相关标签/搜索