Update code comment of quadratic in time_complexity (#1155)

This commit is contained in:
Nan Lei
2024-03-19 02:28:16 +08:00
committed by GitHub
parent 7a4a45977a
commit 300a781fab
14 changed files with 14 additions and 14 deletions
@@ -36,7 +36,7 @@ func arrayTraversal(nums []int) int {
/* 平方阶 */
func quadratic(n int) int {
count := 0
// 循环次数与数组长度成平方关系
// 循环次数与数据大小 n 成平方关系
for i := 0; i < n; i++ {
for j := 0; j < n; j++ {
count++