楊輝三角II

給定一個非負索引 k,其中 k ≤ 33,返回楊輝三角的第 k 行。web 在楊輝三角中,每一個數是它左上方和右上方的數的和。svg public List<Integer> getRow(int rowIndex) { List<Integer> res = new ArrayList<Integer>(); for (int i = 0; i <= rowIndex; i++) {
相關文章
相關標籤/搜索