#143

Reorder List

medium· Linked Listruns: 0

You are given the head of a singly linked list L0 -> L1 -> ... -> Ln-1 -> Ln. Reorder the list to be of the form L0 -> Ln -> L1 -> Ln-1 -> L2 -> Ln-2 -> .... You may not modify the values in the list's nodes; only the nodes themselves may be changed.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.