Editable sequence with a marker
Design a sequence of elements with a marker on one of them. Support adding or removing a run of elements at a position, moving a run from one position to another, and setting a new marker, with the marker staying on the right element through every change.
No answer yet. Write the first one; the best answer gets endorsed.
