class Solution { public boolean isPowerOfTwo(int n) { return n>0 && Math.pow(2,30)%n==0?true:false; } }. 0. 0. Share. Favorite. Comments (0). Sort by:Best.
確定! 回上一頁