Lập Trình Viên Số Khổ
Senior Member
xem giải thui fenFollow up: Could you solve it without loops/recursion? thím ơi
Java:
public class Solution {
public boolean isPowerOfThree(int n) {
return n > 0 && 1162261467 % n == 0;
}
}

