code: added doc code

This commit is contained in:
RiverTwilight
2023-01-02 18:57:26 +08:00
parent 3f00aa39fb
commit 2bd24e61a8
3 changed files with 50 additions and 35 deletions

View File

@ -3,19 +3,3 @@
* Created Time: 2023-01-02
* Author: RiverTwilight (contact@rene.wang)
*/
function algorithm_A(n) {
console.log(0);
}
// 算法 B 时间复杂度:线性阶
function algorithm_B(n) {
for (var i = 0; i < n; i++) {
console.log(0);
}
}
// 算法 C 时间复杂度:常数阶
function algorithm_C(n) {
for (var i = 0; i < 1000000; i++) {
console.log(0);
}
}