From 03aeda84e22d2237e17078213e23680f93fb9332 Mon Sep 17 00:00:00 2001 From: Yudong Jin Date: Thu, 5 Jan 2023 01:02:51 +0800 Subject: [PATCH] Update docs/chapter_computational_complexity/time_complexity.md Co-authored-by: Justin Tse --- docs/chapter_computational_complexity/time_complexity.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/chapter_computational_complexity/time_complexity.md b/docs/chapter_computational_complexity/time_complexity.md index b26fdf2bf..ee1f6f0ce 100644 --- a/docs/chapter_computational_complexity/time_complexity.md +++ b/docs/chapter_computational_complexity/time_complexity.md @@ -621,8 +621,8 @@ $$ console.log(0); } // +n*n(技巧 3) - for (var i = 0; i < 2 * n; i++) { - for (var j = 0; j < n + 1; j++) { + for (let i = 0; i < 2 * n; i++) { + for (let j = 0; j < n + 1; j++) { console.log(0); } }