Problem 707 · Medium

Design Linked List

Walk to the target index, then splice nodes in or out; a sentinel head keeps the edges uniform.

Open the interactive visualisation