Free question · start here
Cache Eviction
CodingAsked very oftenOnsite, phone screen
Goal: Implement a cache eviction algorithm that evicts the item for which the next request is farthest in the future. Input: - item_request_sequence: A list of strings representing the sequence of items requested by the user. - cache_size: An integer represent