Skip to content
RED SAGSkills
hard20 pts · first answer countshash-mapdesigncaching

Designing an O(1) LFU cache

An LFU cache evicts the least frequently used key, breaking ties by least recent use. Which design gives O(1) get and put?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions