from collections import OrderedDictclass Solution: def LRU(self , operators , k ): ret = [] od = OrderedDict() for opt in operators: if opt[0] == 1: if len(od) < k: od[str(opt[1])] = opt[2] else: od.pop(list(od.keys())...