Problem 430 · Medium

Flatten a Multilevel Doubly Linked List

Flatten a multilevel doubly linked list where some nodes hold child lists, so that each child list is spliced in place. The visual splices each child list into the main line and reconnects the pointers.

Open the interactive visualisation