Rubrik | Key-value store with snapshot
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2019-07-20Added By Anonymous
Source: Link
Build a key-value data structure that allows the user to take a snapshot of the data. The user can read the key-value store from any snapshot.
Structure has the normal key/value like methods plus something like
1snapshot = dataStructure.takeSnapshot();
2value = dataStructure.get(key, snapshot);
3void dataStructure.deleteSnapshot();
4