package
0.0.0-20241220224003-b7cf03a90b2b
Repository: https://github.com/szhou12/leetcode-go.git
Documentation: pkg.go.dev
# README
441. Arranging Coins
Solution idea
模拟
每次增加1,并看是否有剩余
等差数列求和公式
$S = \frac{n(n+1)}{2} \Rightarrow n = \lfloor \sqrt{2S+1/4} - 1/2 \rfloor$