Snapshot Array
Problem Statement:-
Implement a SnapshotArray that supports the following interface:
SnapshotArray(int length) initializes an array-like data structure with the given length. Initially, each element equals 0.
void set(index, val) sets the element a...
leeting-lcs.hashnode.dev4 min read