implement a data structure to set, get and setAll entries in O(1).
Anonymous
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....
Check out your Company Bowl for anonymous work chats.