← Back to context

Comment by saagarjha

5 years ago

You can imagine a linked list whose “API” is “take this node and insert after it”.

If a bunch of insertions happen like that, based on some other data structure, and then a periodic iteration eventually happens at some point, you could also imagine an array version being batching together all the array inserts in another simple array and applying them all at once before iteration.