<commit_before>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]
    }
}
<commit_msg>Update problem 739<commit_after>package leetcode;

import java.util.Arrays;

/**
 * https://leetcode.com/problems/daily-temperatures/
 */
public class Problem739 {
    public int[] dailyTemperatures(int[] temperatures) {
        int[] result = new int[temperatures.length];
        int i = 0;
        int j = 1;
        int count = 1;
        while (i < temperatures.length) {
            if (j == temperatures.length) {
                count = 1;
                i++;
                j = i + 1;
                continue;
            }
            if (temperatures[i] < temperatures[j++]) {
                result[i++] = count;
                count = 1;
                j = i + 1;
            } else {
                count++;
            }
        }
        return result;
    }

    public static void main(String[] args) {
        Problem739 prob = new Problem739();
        System.out.println(Arrays.toString(prob.dailyTemperatures(new int[]{73, 74, 75, 71, 69, 72, 76, 73}))); // [1, 1, 4, 2, 1, 1, 0, 0]
        System.out.println(Arrays.toString(prob.dailyTemperatures(new int[]{73, 73}))); // [0, 0]
        System.out.println(Arrays.toString(prob.dailyTemperatures(new int[]{73, 72, 71, 70}))); // [0, 0, 0, 0]
        System.out.println(Arrays.toString(prob.dailyTemperatures(new int[]{55, 38, 53, 81, 61, 93, 97, 32, 43, 78}))); // [3,1,1,2,1,1,0,1,1,0]
    }
}

{'fraction_non_alphanumeric': 0.15919037199124728, 'fraction_numerical': 0.06783369803063458, 'mean_word_length': 2.023140495867769, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1544800', 'n_tokens_mistral': 709, 'n_tokens_neox': 602, 'n_words': 145}