xAI logoxAI
Coding·15 minMembers

Weighted LRU Cache

Members only

An LRU cache variant where each entry carries a size/weight and the cache is bounded by total size rather than item count, so one insertion may evict several least-recently-used entries. Asked inside ...

SWE
Infra Eng
data-structure
hashmap
linked-list
design-implementation
medium
Frequency
Single report
Last asked
2026-02-01
Stage
phone-screen · tech-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...