Copy-Free Editor
Frequency: Reported
Design an editor supporting:
text
insert(text, offset)
delete(offset, length)Store edits without copying the original string, and reconstruct the current text efficiently.
The source did not preserve the full API, error behavior, performance targets, or follow-ups.