Update codes/typescript/chapter_computational_complexity/time_complexity.ts

Co-authored-by: Justin Tse <xiefahit@gmail.com>
This commit is contained in:
Yudong Jin 2023-01-05 01:01:28 +08:00 committed by GitHub
parent c5a9eea0a9
commit a29a584b6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ function factorialRecur(n: number): number {
var n = 8;
console.log("输入数据大小 n = " + n);
var count = constant(n);
let count = constant(n);
console.log("常数阶的计算操作数量 = " + count);
count = linear(n);