【leetcode】Python實現-118.楊輝三角

118.楊輝三角 描述python 給定一個非負整數 numRows,生成楊輝三角的前 numRows 行。 在楊輝三角中,每一個數是它左上方和右上方的數的和。web 示例app 輸入: 5 輸出: [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ]svg 我函數 if not numRows: return []
相關文章
相關標籤/搜索