Object-Oriented Programming · Airbnb · Medium
This OA asks you to build an in-memory store for parcels, where each parcel holds a set of named attributes. The task unlocks in four successive levels, and operations take a timestamp argument. Level 1 — basic operations Set an attribute on a parcel; setting an attribute that already exists overwrites its value. Get the value of a parcel's attribute. updateIfMatch: a compare-and-set operation that updates an attribute only when its current value matches the expected value.…