Problem 707 · Medium
Walk to the target index, then splice nodes in or out; a sentinel head keeps the edges uniform.
Open the interactive visualisation