Problem 1743 · Medium
Restore an array of distinct values from its unordered adjacent pairs.
Open the interactive visualisation