mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-12-25 22:46:20 +08:00
Update time complexity table for LRU.
This commit is contained in:
parent
3d8dd9a67f
commit
6c4aa1b6a2
@ -26,7 +26,7 @@ You may also find more test-case examples of how the LRU Cache works in [LRUCach
|
|||||||
|
|
||||||
## Costs
|
## Costs
|
||||||
|
|
||||||
| | Worst Case |
|
| | Average |
|
||||||
|---|---|
|
|---|---|
|
||||||
| Space |`O(n)`|
|
| Space |`O(n)`|
|
||||||
| Get item | `O(1)` |
|
| Get item | `O(1)` |
|
||||||
|
Loading…
Reference in New Issue
Block a user