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
相关文章
相关标签/搜索