@@ -0,0 +1,561 @@
+import java.util.Arrays;%0A%0Aclass PascalsTriangleIi %7B%0A  public int%5B%5D getRow(int rowIndex) %7B%0A    int%5B%5D list = new int%5BrowIndex%5D;%0A    int%5B%5D previousList = new int%5BrowIndex%5D;%0A    for (int i = 0; i %3C rowIndex; i++) %7B%0A      list%5B0%5D = 1;%0A      for (int j = 1; j %3C i; j++) %7B%0A        list%5Bj%5D = previousList%5Bj - 1%5D + previousList%5Bj%5D;%0A      %7D%0A      list%5Bi%5D = 1;%0A      previousList = list.clone();%0A    %7D%0A    return list;%0A  %7D%0A%0A  public static void main(String%5B%5D args) %7B%0A    System.out.println(Arrays.toString(new PascalsTriangleIi().getRow(Integer.parseInt(args%5B0%5D))));%0A  %7D%0A%7D

Add solution 119