Your question is Finding Duplicates in an Array. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
How would you find duplicates in an array?
Return a list containing each value that appears at least twice, included only once. Implement def find_duplicates(nums):, where nums is a list of integers and the result preserves the order in which values are first detected as duplicates.
def find_duplicates(nums):