/*
 * Given an integer, write a function to determine if it is a power of two.
*/

package P231_PowerOfTwo;

public class Solution {
    public boolean isPowerOfTwo(int n) {
        //bit
    	if(((n-1)&n) == 0 && n > 0) return true;
    	return false;
  }
}

add p231