← 返回 openai 的题目列表Design a Read/Write-Optimized Data Structure (General Coding, Non-ML)
类型:online_judge
75-min Coding Interview: Design a Data Structure Optimized for Reads and Writes
Implement a custom data structure in a language of your choice that is optimized for both reads and writes.
The prompt emphasizes:
Not related to AI/ML
No complex algorithms (more about engineering design & clean code)
You may Google standard library usage
Evaluation focuses on problem solving and clean, well-designed code
What you are expected to do (recoverable from the post)
Define a reasonable API (e.g., read/write/update operations).
Explain trade-offs for read vs. write performance.
Produce runnable code and walk through examples.
Tests & constraints
The post does not specify the exact API, I/O, performance targets, read/write ratio, capacity limits, or concurrency requirements, so it cannot be reconstructed into a fully specified coding problem.