directory
Version:
v0.0.0-...-9b92ec5
Opens a new window with list of versions in this module.
Published: Jan 3, 2021
License: MIT
Opens a new window with license information.
README
¶
给定一个非负索引 k,其中 k ≤ 33,返回杨辉三角的第 k 行。

在杨辉三角中,每个数是它左上方和右上方的数的和。
示例:
**输入:** 3 **输出:** [1,3,3,1]
进阶:
你可以优化你的算法到 O(k) 空间复杂度吗?
Directories
¶
Click to show internal directories.
Click to hide internal directories.