All challenges
Multiple ChoiceBeginner 45s

LRU vs LFU eviction

A key is requested extremely frequently for a short burst then never again. Which eviction policy retains it longest?
Options
  1. 1LRU, because it is currently the most recently used
  2. 2FIFO, because insertion order is preserved
  3. 3Random, because probabilistic eviction is uniform
  4. 4LFU, because it has the highest historical access count

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle