package leetcode;

/**
 * https://leetcode.com/problems/daily-temperatures/
 */
public class Problem739 {
    public int[] dailyTemperatures(int[] temperatures) {
        // TODO
        return null;
    }

    public static void main(String[] args) {
        Problem739 prob = new Problem739();
        System.out.println(prob.dailyTemperatures(new int[]{73, 74, 75, 71, 69, 72, 76, 73})); // [1, 1, 4, 2, 1, 1, 0, 0]
    }
}

@@ -12,16 +12,42 @@
 tcode;%0A%0A
+import java.util.Arrays;%0A%0A
 /**%0A * h
@@ -194,35 +194,552 @@
     
-// TODO%0A        return null
+int%5B%5D result = new int%5Btemperatures.length%5D;%0A        int i = 0;%0A        int j = 1;%0A        int count = 1;%0A        while (i %3C temperatures.length) %7B%0A            if (j == temperatures.length) %7B%0A                count = 1;%0A                i++;%0A                j = i + 1;%0A                continue;%0A            %7D%0A            if (temperatures%5Bi%5D %3C temperatures%5Bj++%5D) %7B%0A                result%5Bi++%5D = count;%0A                count = 1;%0A                j = i + 1;%0A            %7D else %7B%0A                count++;%0A            %7D%0A        %7D%0A        return result
 ;%0A  
@@ -859,16 +859,32 @@
 println(
+Arrays.toString(
 prob.dai
@@ -941,16 +941,17 @@
 6, 73%7D))
+)
 ; // %5B1,
@@ -972,16 +972,371 @@
 , 0, 0%5D%0A
+        System.out.println(Arrays.toString(prob.dailyTemperatures(new int%5B%5D%7B73, 73%7D))); // %5B0, 0%5D%0A        System.out.println(Arrays.toString(prob.dailyTemperatures(new int%5B%5D%7B73, 72, 71, 70%7D))); // %5B0, 0, 0, 0%5D%0A        System.out.println(Arrays.toString(prob.dailyTemperatures(new int%5B%5D%7B55, 38, 53, 81, 61, 93, 97, 32, 43, 78%7D))); // %5B3,1,1,2,1,1,0,1,1,0%5D%0A
     %7D%0A%7D%0A

Update problem 739