Problem 1836 · Medium

Remove Duplicates From an Unsorted Linked List

Count every value in one pass, then keep only the nodes whose value occurs exactly once.

Open the interactive visualisation