Implement a Level-Aware Expiring Inventory Store
Company: Optiver
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Take-home Project
Quick Answer: Practice a Optiver coding interview problem focused on implement a level-aware expiring inventory store. The prompt emphasizes edge cases, clean implementation, and verifiable test behavior without revealing the solution.
Examples
Input: {"operations":[["store","a",1,5,0,None],["retrieve",1]]}
Expected Output: ["a"]
Explanation: Basic retrieval.
Input: {"operations":[["retrieve",1]]}
Expected Output: [""]
Explanation: Empty store.