Given an unsorted array of integers nums, return a new array containing only the first occurrence of each value in the order they appear. Do not modify the input array in place unless needed for your approach.
You are practicing as a guest. Sign up free to run your code against the sample data. Your draft stays right here.