摘要:
题目描述: Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]. Note: Could you optimize your algorit 阅读全文
摘要:
题目描述: Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5, Return 本题要我们输入一个整数(行数),返回二维数组形式的杨辉三角(帕斯卡三角)。 解题思 阅读全文