umdreamer / leetcodeproblems

Solutions for LeetCode OJ
3 stars 9 forks source link

2023.5.22 Problem: 118. Pascal's Triangle #19

Closed umdreamer closed 1 year ago

umdreamer commented 1 year ago
  1. Pascal's Triangle Problem Link

Given an integer numRows, return the first numRows of Pascal's triangle.

In Pascal's triangle, each number is the sum of the two numbers directly above it as shown:

image

Example 1:

Input: numRows = 5
Output: [[1],[1,1],[1,2,1],[1,3,3,1],[1,4,6,4,1]]

Example 2:

Input: numRows = 1
Output: [[1]]

Constraints:

zxm-1235 commented 1 year ago

image

yeyuxq commented 1 year ago

image

huangyumei1 commented 1 year ago

QQ图片20230522162450

tangyexi commented 1 year ago
屏幕截图 2023-05-22 164251
ZWJ2212061008 commented 1 year ago

image

cuixiao02 commented 1 year ago
截屏2023-05-22 18 38 49
zangfushuo commented 1 year ago
截屏2023-05-22 18 41 57
wangshiqi7 commented 1 year ago
截屏2023-05-22 18 35 51
PinkyLame commented 1 year ago

image

daowuwu commented 1 year ago

G3UV 8V`} A{)AT)PLSSDS

sjh397 commented 1 year ago

image

686xiaozhang commented 1 year ago

QQ截图20230522190338

zhjingyan commented 1 year ago

image

123lrb commented 1 year ago

DJ2T $ZW0GBXZ2TF7ZWDZ 8

mafanjia commented 1 year ago

截屏10

Lggg1234 commented 1 year ago

屏幕截图 2023-05-22 202620

liu-si-han commented 1 year ago
image
1125766961 commented 1 year ago

image

syr2212061031 commented 1 year ago

U8Z9HB{_6NMJ)77U30}HBP6

xiaolu2002 commented 1 year ago

image

shylieisme commented 1 year ago

8{B8MNPM_7~WJ$8J6GK~J62

FXL1006 commented 1 year ago
屏幕截图 2023-05-22 192456
bedauern commented 1 year ago
Snipaste_2023-05-22_21-14-13
foxbou commented 1 year ago
image
promisewith7 commented 1 year ago

image

24zlx commented 1 year ago

联想截图_20230522212752

xkqwww commented 1 year ago

无标题

htywan commented 1 year ago

1

naqianqpg commented 1 year ago

NXGU%36OMTO0XM1%`3K% V7

gusuning commented 1 year ago
屏幕截图 2023-05-22 214123
liuhuanyu6 commented 1 year ago

image

12baoxingyu-6 commented 1 year ago
image