package leetcode;

/**
 * https://leetcode.com/problems/rotated-digits/
 */
public class Problem788 {
    public int rotatedDigits(int N) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem788 prob = new Problem788();
        System.out.println(10); // 4
        System.out.println(11); // 4
        System.out.println(12); // 5
    }
}

package leetcode;

/**
 * https://leetcode.com/problems/rotated-digits/
 */
public class Problem788 {
    public int rotatedDigits(int N) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem788 prob = new Problem788();
        System.out.println(prob.rotatedDigits(10)); // 4
        System.out.println(prob.rotatedDigits(11)); // 4
        System.out.println(prob.rotatedDigits(12)); // 5
    }
}

Update problem 788