Object-Oriented Programming · C3.ai · Medium
Design a key-value data structure in which a single key can hold several values, each one recorded at a different timestamp. When a value is read for a key at some query time, the structure must return the value whose timestamp is the largest one that is less than or equal to the query time. If the key has no value at or before that time, the read returns an empty string. Video Solution