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
相關文章
相關標籤/搜索