Skip to content

Commit

Permalink
Update codes/typescript/chapter_computational_complexity/time_complex…
Browse files Browse the repository at this point in the history
…ity.ts

Co-authored-by: Justin Tse <[email protected]>
  • Loading branch information
krahets and justin-tse authored Jan 4, 2023
1 parent c5a9eea commit a29a584
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a29a584

Please sign in to comment.