pascals triangle(楊輝三角、帕斯卡三角)

題目描述 Given numRows, generate the first numRows of Pascal’s triangle. For example, given numRows = 5, Return: [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ] 題目大意 楊輝三角 給定一個非負整數 numRows,生成楊輝三角的前 numRows
相關文章
相關標籤/搜索