Update docs/chapter_computational_complexity/time_complexity.md
Co-authored-by: Justin Tse <xiefahit@gmail.com>
This commit is contained in:
parent
9f7a9fde20
commit
2acf85a626
@ -79,6 +79,7 @@ $$
|
|||||||
=== "JavaScript"
|
=== "JavaScript"
|
||||||
|
|
||||||
```js title=""
|
```js title=""
|
||||||
|
// 在某运行平台下
|
||||||
function algorithm(n) {
|
function algorithm(n) {
|
||||||
var a = 2; // 1 ns
|
var a = 2; // 1 ns
|
||||||
a = a + 1; // 1 ns
|
a = a + 1; // 1 ns
|
||||||
|
Loading…
x
Reference in New Issue
Block a user