General Motors (GM) interview question

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

Interview Answer

Anonymous

3 Apr 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....