Update codes/typescript/chapter_computational_complexity/time_complexity.ts
Co-authored-by: Justin Tse <xiefahit@gmail.com>
This commit is contained in:
parent
c5a9eea0a9
commit
a29a584b6f
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user