BiruLyu
5/24/2017 - 11:56 PM

231. Power of Two.java

public class Solution {
    public boolean isPowerOfTwo(int n) {
        return (n > 0) && ( (n & (n - 1)) == 0);
    }
}