118. Pascal's Triangle

Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. Example: Input: 5 Output: [ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1] ] 当i=0,nums[0][0]=1 当i>0,n
相关文章
相关标签/搜索