mirror of
https://github.com/krahets/hello-algo.git
synced 2025-11-02 04:31:55 +08:00
Update time complexity and space complexity.
This commit is contained in:
@ -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
|
||||
@ -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;
|
||||
Reference in New Issue
Block a user