Update time_complexity.md
This commit is contained in:
parent
2a47d31191
commit
3b979f8d4e
@ -759,6 +759,7 @@ $$
|
|||||||
=== "TypeScript"
|
=== "TypeScript"
|
||||||
|
|
||||||
```typescript title="time_complexity.ts"
|
```typescript title="time_complexity.ts"
|
||||||
|
/* 线性阶 */
|
||||||
function linear(n: number): number {
|
function linear(n: number): number {
|
||||||
let count = 0
|
let count = 0
|
||||||
for (let i = 0; i < n; i++) {
|
for (let i = 0; i < n; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user