Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Snapshot Array
Bookmark
Input
Standard
Multiple Snaps
Sparse
Custom
length
=
3
,
operations
=
[set(0,5), snap(), set(0,6), get(0,0), set(1,10), snap(), get(0,1), get(1,1)]
snapCount =
0
[0]
0
s0
0
[1]
0
s0
0
[2]
0
s0
0
algo
master
.
io
Step:
Start: a SnapshotArray of length 3. Each index stores a history of (snap_id, value) pairs, starting as (0, 0). snapCount = 0.
0 / 21
Input
Standard
Multiple Snaps
Sparse
Custom
length
=
3
,
operations
=
[set(0,5), snap(), set(0,6), get(0,0), set(1,10), snap(), get(0,1), get(1,1)]
0 / 21
snapCount =
0
[0]
0
s0
0
[1]
0
s0
0
[2]
0
s0
0
algo
master
.
io
Step:
Start: a SnapshotArray of length 3. Each index stores a history of (snap_id, value) pairs, starting as (0, 0). snapCount = 0.