#26 - Find Unique Numbers
You are given an array of integers where some elements may be duplicated. Your task is to implement a function to find and return a list of unique numbers from the input array.
Example 1
Input
nums = [4, 2, 3, 2, 4, 5]
Output
[3,5]
Example 2
Input
nums = [-1, 3, 2, 5, 3, 2]
Output
[-1,5]
Last updated