14 ms·
Though with a gap buffer, you can have O(1) to insert/delete at some other point. Costs O(n) to move that point, though.
by dllthomas 14y ago
Though with a gap buffer, you can have O(1) to insert/delete at some other point. Costs O(n) to move that point, though.