描述 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相匹配,以变量i代表当前的行数,那么i-1才是当前行的下标.以j代表当前行的第i个元素(这个j是从下标1开始的). 代码如下: cl…