Remove duplicates
easyLists10 XP
Return the numbers of nums without repeats, keeping each one where it first appeared.
Examples
- Input: nums = [3, 1, 3, 2, 1]Output: [3, 1, 2]
- Input: nums = []Output: []
Examples use JSON: true/false/null are True/False/None in Python.