mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-16 03:59:18 +08:00
Update codes/typescript/chapter_computational_complexity/time_complexity.ts
Co-authored-by: Justin Tse <xiefahit@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user