package
0.0.0-20241220224003-b7cf03a90b2b
Repository: https://github.com/szhou12/leetcode-go.git
Documentation: pkg.go.dev
# README
Solution idea
按照帕斯卡三角的机制写就可以:j-th position on i-th row = (j-1)-th position + j-th position on (i-1)-th row
Time complexity = $O(n^2)$ ($1+2+3+\cdots + n = \frac{n(n-1)}{2}$)