package leetcode;

/**
 * https://leetcode.com/problems/longest-mountain-in-array/
 */
public class Problem845 {
    public int longestMountain(int[] A) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem845 prob = new Problem845();
    }
}

package leetcode;

/**
 * https://leetcode.com/problems/longest-mountain-in-array/
 */
public class Problem845 {
    public int longestMountain(int[] A) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem845 prob = new Problem845();
        System.out.println(prob.longestMountain(new int[]{2, 1, 4, 7, 3, 2, 5})); // 5
        System.out.println(prob.longestMountain(new int[]{2, 2, 2})); // 0
    }
}

Update problem 845