Update codes/javascript/chapter_computational_complexity/time_complexity.js
Co-authored-by: Justin Tse <xiefahit@gmail.com>
This commit is contained in:
parent
b5c9db935e
commit
abdf1f3117
@ -118,6 +118,8 @@ function factorialRecur(n) {
|
||||
return count;
|
||||
}
|
||||
|
||||
/* Driver Code */
|
||||
// 可以修改 n 运行,体会一下各种复杂度的操作数量变化趋势
|
||||
const n = 8;
|
||||
console.log("输入数据大小 n = " + n);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user