2 ms·
Why not make a file an arbitrary data structure, instead of a vector to which you can push only at the end?
by amelius 7y ago
Why not make a file an arbitrary data structure, instead of a vector to which you can push only at the end?
- derefr 7y agoMaybe I didn’t make that clear, but that’s what I was talking about. That’s why I used the term “vector” instead of “stack.” A vector ADT usually allows insertion/deletion/replacement from the middle.
- amelius 7y agoOk, but what I meant was: instead of vectors, or deques, why not also consider sets, maps, etc.?