Problem 2487 · Medium

Remove Nodes From Linked List

Remove every linked-list node that has a strictly larger value somewhere to its right.

Open the interactive visualisation