79211829

Date: 2024-11-21 15:25:34
Score: 2
Natty:
Report link

Any indexed data structure can be used to store the elements. Unlike the LRU, the MRU does not need to hold the history. Keep an MRU variable with an index of the last used cache entry. Update it on hit and on replacement. Pick the MRU element when need to replace an element.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: AlexF