Update time complexity and space complexity.

This commit is contained in:
Yudong Jin
2022-12-13 23:24:12 +08:00
parent f0c6de961a
commit bec787b751
15 changed files with 168 additions and 382 deletions

View File

@ -1,5 +1,5 @@
/*
* File: space_complexity_types.java
* File: space_complexity.java
* Created Time: 2022-11-25
* Author: Krahets (krahets@163.com)
*/
@ -9,7 +9,7 @@ package chapter_computational_complexity;
import include.*;
import java.util.*;
public class space_complexity_types {
public class space_complexity {
/* 函数 */
static int function() {
// do something

View File

@ -1,12 +1,12 @@
/*
* File: time_complexity_types.java
* File: time_complexity.java
* Created Time: 2022-11-25
* Author: Krahets (krahets@163.com)
*/
package chapter_computational_complexity;
public class time_complexity_types {
public class time_complexity {
/* 常数阶 */
static int constant(int n) {
int count = 0;