mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-26 13:16:28 +08:00
Update codes/typescript/chapter_computational_complexity/time_complexity.ts
Co-authored-by: Justin Tse <xiefahit@gmail.com>
This commit is contained in:
parent
3906c3df06
commit
9f7a9fde20
1 changed files with 3 additions and 1 deletions
|
@ -118,7 +118,9 @@ function factorialRecur(n: number): number {
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
var n = 8;
|
/* Driver Code */
|
||||||
|
// 可以修改 n 运行,体会一下各种复杂度的操作数量变化趋势
|
||||||
|
const n = 8;
|
||||||
console.log("输入数据大小 n = " + n);
|
console.log("输入数据大小 n = " + n);
|
||||||
|
|
||||||
let count = constant(n);
|
let count = constant(n);
|
||||||
|
|
Loading…
Reference in a new issue