← Questions

Editable sequence with a marker

0
GoogleCodingLast asked Feb 2026

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.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding