package
Version:
v0.0.0-...-a49be92
Opens a new window with list of versions in this module.
Published: Feb 20, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
排列硬币
你总共有 n
__枚硬币,并计划将它们按阶梯状排列。对于一个由 k
行组成的阶梯,其第 i
__行必须正好有 i
__枚硬币。阶梯的最后一行 可能 是不完整的。
给你一个数字 n
__,计算并返回可形成 完整阶梯行 的总行数。
示例 1:
```
输入:n = 5
输出:2
解释:因为第三行不完整,所以返回 2 。
**示例 2:**
![](https://assets.leetcode.com/uploads/2021/04/09/arrangecoins2-grid.jpg)```
输入:n = 8
输出:3
解释:因为第四行不完整,所以返回 3 。
提示:
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.