LRU Cache (capacity = 3)
PUT(A), PUT(B), PUT(C), GET(A), PUT(D) — D 삽입 시 가장 오래된 B 가 evict
메타데이터
| ID | lru-cache |
| 카테고리 | algorithm |
| 버전 | v3 |
| 길이 | 5.2s (5200ms) |
| 구성 | 12 elements · 6 chapters · 7 effects |
| 태그 | #lru #cache #data-structure #algorithm |
본문에 삽입
```anim:lru-cache
{}
```