119/

directory
v0.0.0-...-9b92ec5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2021 License: MIT

README

杨辉三角 II

给定一个非负索引 k,其中 k ≤ 33,返回杨辉三角的第 k 行。

image

在杨辉三角中,每个数是它左上方和右上方的数的和。

示例:

**输入:** 3 **输出:** [1,3,3,1]

进阶:

你可以优化你的算法到 O(k) 空间复杂度吗?

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL