carloscn / carloscn/structstudy

leetcode119:杨辉三角 II(pascals-triangle-ii)

Open
#48 2 comments 0 reactions 1 assignee Claimed by @carloscn View on GitHub
Level-easy 一般问题 数组
Dominant language
C
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

### 问题描述:

给定一个非负索引 rowIndex,返回「杨辉三角」的第 rowIndex 行。

![1626927345-DZmfxB-PascalTriangleAnimated2 (1)](https://user-images.githubusercontent.com/16836611/199365368-bd552695-cf38-4c3b-9417-765f159031f2.gif)

示例 1:
输入: rowIndex = 3
输出: [1,3,3,1]

示例 2:
输入: rowIndex = 0
输出: [1]

示例 3:
输入: rowIndex = 1
输出: [1,1]
 

提示:
0 <= rowIndex <= 33

来源:力扣(LeetCode)
链接:https://leetcode.cn/problems/pascals-triangle-ii

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.