@@ -0,0 +1,594 @@
+public class Solution %7B%0A    public int minimumTotal(List%3CList%3CInteger%3E%3E triangle) %7B%0A        if (triangle == null) %7B%0A            return 0;%0A        %7D%0A        %0A        int size = triangle.size();%0A        int %5B%5D%5B%5D sum = new int%5Bsize%5D%5Bsize%5D;%0A        %0A        for(int i=0; i%3Csize; i++) %7B%0A            sum%5Bsize-1%5D%5Bi%5D = triangle.get(size-1).get(i);%0A        %7D%0A        %0A        for(int i=size-2; i%3E=0; i--) %7B%0A            for(int j=0; j%3C=i; j++) %7B%0A                sum%5Bi%5D%5Bj%5D = Math.min(sum%5Bi+1%5D%5Bj%5D, sum%5Bi+1%5D%5Bj+1%5D) + triangle.get(i).get(j);%0A            %7D%0A        %7D%0A        %0A        return sum%5B0%5D%5B0%5D;%0A    %7D%0A%7D%0A

Create Triangle.java