Object-Oriented Programming · Airbnb · Medium
Build an in-memory store that holds objects, each identified by a unique object_id. Every object carries a set of fields, and field names never repeat within a single object. The task is delivered in stages, each one extending the previous one. Stage 1 — basic operations. Support the following: set_value(object_id, field, value) get_value(object_id, field) delete_value(object_id, field) delete_object(object_id) Stage 2 — prefix scan. Add scan_by_prefix(object_id, prefix),…