leetcode刷题三十
Posted hhh江月
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了leetcode刷题三十相关的知识,希望对你有一定的参考价值。
leetcode刷题三十
题目叙述
https://leetcode-cn.com/problems/pascals-triangle/
给定一个非负整数 numRows,生成「杨辉三角」的前 numRows 行。
在「杨辉三角」中,每个数是它左上方和右上方的数的和。
题目解答
下面是使用python代码来进行解答。
class Solution:
def generate(self, numRows: int) -
以上是关于leetcode刷题三十的主要内容,如果未能解决你的问题,请参考以下文章