LeetCode Solutions/Problems/231. Power of Two.java
<reponame>DevashishPathrabe/LeetCodeclass Solution {
    public boolean isPowerOfTwo(int n) {
        if (n == 0){
            return false;
        }
        return (n == 1) || (n % 2 == 0 && isPowerOfTwo(n / 2));
    }
}