package leetcode;

/**
 * https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/
 */
public class Problem1130 {
    public int mctFromLeafValues(int[] arr) {
        // TODO
        return 0;
    }

    public static void main(String[] args) {
        Problem1130 prob = new Problem1130();
        System.out.println(prob.mctFromLeafValues(new int[]{6, 2, 4})); // 32
    }
}

@@ -372,16 +372,97 @@
 ; // 32%0A
+        System.out.println(prob.mctFromLeafValues(new int%5B%5D%7B6, 2, 4, 5%7D)); // 58%0A
     %7D%0A%7D%0A

Update problem 1130