Salesforce logoSalesforce
Coding·45 minMembers

LFU Cache (LeetCode 460)

Members only

Implement an O(1) LFU (Least Frequently Used) cache supporting `get(key)` and `put(key, value)` under a fixed capacity. Asked both as a phone-screen coding problem and as the second coding round in on...

SWE
linked-list
hashmap
design
caching
hard
Frequency
Low
Last asked
2026-01-28
Stage
phone-screen · onsite-coding

Log in to continue reading the full content