Design/implement an LRU cache.
Asked in the Round 3 (Coding) stage. Implement lru_cache(capacity, operations), processing operations in order. Each operation is ['get', key] or ['put', key, value]. Return the values produced by successful and unsuccessful get operations, using -1 for a missing key. A get or update marks the key as most recently used. When inserting beyond capacity, evict the least recently used key.
Input: positive integer capacity and a list of operation lists. Output: a list of integers from get operations.
def lru_cache(capacity, operations):