package leetcode;

/**
 * https://leetcode.com/problems/russian-doll-envelopes/
 */
public class Problem354 {
    public int maxEnvelopes(int[][] envelopes) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem354 prob = new Problem354();
        System.out.println(prob.maxEnvelopes(new int[][]{
            {5, 4},
            {6, 4},
            {6, 7},
            {2, 3}
        }));
    }
}

package leetcode;

/**
 * https://leetcode.com/problems/russian-doll-envelopes/
 */
public class Problem354 {
    public int maxEnvelopes(int[][] envelopes) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem354 prob = new Problem354();
        System.out.println(prob.maxEnvelopes(new int[][]{
            {5, 4},
            {6, 4},
            {6, 7},
            {2, 3}
        })); // 3
    }
}

Update problem 354