(Leetcode) 3的冪 - Python實現

題目:html 給定一個整數,寫一個函數來判斷它是不是 3 的冪次方。Given an integer, write a function to determine if it is a power of three.python 示例 :函數 輸入: 27  輸出: true測試 輸入: 0   輸出: false.net 輸入: 9   輸出: truecode 輸入: 45  輸出: fal
相關文章
相關標籤/搜索