Design a data structure to implement Least Frequently Used (LFU)

LFU : Discards the least frequently used items first.

Operations

  1. Insert(key, value)
  2. find(key)

results matching ""

    No results matching ""