标签:滚动 public mamicode div ima 二维 OWIN info solution
class Solution { public List<Integer> getRow(int rowIndex) { Integer[] res = new Integer[rowIndex+1]; Arrays.fill(res,1); for(int i = 1; i <= rowIndex; i++) { for(int j = i - 1; j > 0; j--) { res[j] = res[j-1] + res[j]; } } return Arrays.asList(res); } }
标签:滚动 public mamicode div ima 二维 OWIN info solution
原文地址:https://www.cnblogs.com/yonezu/p/13339698.html