Fetching algorithms...
Fetching algorithms...
Watch key transitions, pointers, and variables update step-by-step.
Read clean, documented implementations across multiple patterns.
Sketch diagrams on an infinite canvas and draft notes directly inline.
capacity = 2, operations = ["LRUCache", "put", "put", "get", "put", "get", "put", "get", "get", "get"] with values [[2], [1, 1], [2, 2], [1], [3, 3], [2], [4, 4], [1], [3], [4]]null, null, null, 1, null, -1, null, -1, 3, 4Time Complexity
Space Complexity