[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){
相關文章
相關標籤/搜索