Editable sequence with a marker

0
Remix

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.

GoogleCodingLast asked Feb 2026
No answer yet. Write the first one; the best answer gets endorsed.