General Motors (GM) Interview Question

implement a data structure to set, get and setAll entries in O(1).

Interview Answer

Anonymous

Apr 3, 2025

added Timestamp for each entry in the array + two local variables: global timestamp and global value. if the TS of a specific element is out of date return the global value....