Ejemplo n.º 1
0
        public static void Test()
        {
            Solution s = new Solution();

            int[][] flightSeats = new int[][]
            {
                new int[] { 1, 2, 10 },
                new int[] { 2, 3, 20 },
                new int[] { 2, 5, 25 }
            };
            var t = TimerY.New();

            s.CorpFlightBookings(flightSeats, 5).PrintList();
            t.TimingMs();
            //10, 55, 45, 25, 25

            int[][] flightSeats2 = new int[][]
            {
                new int[] { 2, 2, 35 },
                new int[] { 1, 2, 10 },
            };

            var t2 = TimerY.New();

            s.CorpFlightBookings(flightSeats2, 2).PrintList();
            t2.TimingMs();
            //10, 45
        }