From 3fa04aeb4a2e7140292efbd2b24d9d3536ffbcd4 Mon Sep 17 00:00:00 2001 From: Yudong Jin Date: Thu, 5 Jan 2023 01:02:19 +0800 Subject: [PATCH] Update docs/chapter_computational_complexity/time_complexity.md Co-authored-by: Justin Tse --- docs/chapter_computational_complexity/time_complexity.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/chapter_computational_complexity/time_complexity.md b/docs/chapter_computational_complexity/time_complexity.md index b3dc3c35d..b26fdf2bf 100644 --- a/docs/chapter_computational_complexity/time_complexity.md +++ b/docs/chapter_computational_complexity/time_complexity.md @@ -617,7 +617,7 @@ $$ var a: number = 1; // +0(技巧 1) a = a + n; // +0(技巧 1) // +n(技巧 2) - for (var i = 0; i < 5 * n + 1; i++) { + for (let i = 0; i < 5 * n + 1; i++) { console.log(0); } // +n*n(技巧 3)