Restore the Array From Adjacent Pairs

mediumSolve on LeetCodeLast edited: July 27, 2025