Beispiel #1
0
        public static void Test()
        {
            Solution s = new Solution();

            ///Console.WriteLine(s.NumPoints());

            Console.WriteLine(s.LongestIncreasingPath(
                                  new int[][]
            {
                new [] { 9, 9, 4 },
                new [] { 6, 6, 8 },
                new [] { 2, 1, 1 },
            }));

            Console.WriteLine(s.LongestIncreasingPath(
                                  new int[][]
            {
                new [] { 3, 4, 5 },
                new [] { 3, 2, 6 },
                new [] { 2, 2, 1 },
            }));
        }