leetcode-118. 杨辉三角 运行时间超越提交的100%

一、题目要求 给定一个非负整数 numRows,生成杨辉三角的前 numRows 行。 在杨辉三角中,每个数是它左上方和右上方的数的和。 二、代码及思路(注释是运行代码后) class Solution(object):     def generate(self, numRows):         """         :type numRows: int         :rtype: L
相关文章
相关标签/搜索