示例#1
0
        /// <summary>
        /// 739. 每日温度
        /// https://leetcode-cn.com/problems/daily-temperatures/
        /// </summary>
        public static void Test0739()
        {
            var solution = new Solution();

            int[] result = null;
            result = solution.DailyTemperatures(new int[] { 73, 74, 75, 71, 69, 72, 76, 73 });
            Console.WriteLine($"{string.Join(',',result)} should be [1, 1, 4, 2, 1, 1, 0, 0]");
            result = solution.DailyTemperatures(new int[] { 1, 2, 3, 4, 5 });
            Console.WriteLine($"{string.Join(',', result)} should be [1, 1, 1, 1, 0]");
        }