Design a data structure that follows the constraints of a **Least Recently Used (LRU) cache**. Implement the `LRUCache` class with `get(key)` and `put(key, value)` methods in $O(1)$ average time complexity.
Click “Run Code” or “Submit” to execute the test suite against edge cases.