15.楊輝三角II

給定一個非負索引 k,其中 k ≤ 33,返回楊輝三角的第 k 行。html 在楊輝三角中,每一個數是它左上方和右上方的數的和。java 示例:code 輸入: 3 輸出: [1,3,3,1] 代碼:htm public static List<Integer> getRow(int rowIndex) { List<List<Integer>> list = new ArrayList<Lis
相關文章
相關標籤/搜索