Posted on

Description

Submission

class Solution {
public:
    bool isPowerOfThree(int n) {
        return n > 0 && 1162261467 % n == 0;
    }
};

Leave a Reply

Your email address will not be published. Required fields are marked *