@@ -0,0 +1,275 @@
+package com.anuragkapur.leetcode;%0A%0A/**%0A * @author anuragkapur%0A */%0Apublic class PowerOfTwo %7B%0A%0A    /**%0A     * Run time complexity: O(1)%0A     *%0A     * @param n%0A     * @return%0A     */%0A    public boolean isPowerOfTwo(int n) %7B%0A        return ((n %3E 0) && ((n & n-1) == 0));%0A    %7D%0A%7D%0A

Add O(1) solution to problem #231