Given an integer array nums, an integer x is defined as a lonely number if it appears exactly once in nums and neither nums.
Return a list containing all the lonely numbers in nums.
Note: You may return the answer in any order.
Constraints:
nums.length
nums[i]
Given an integer array nums, an integer x is defined as a lonely number if it appears exactly once in nums and neither nums.
Return a list containing all the lonely numbers in nums.
Note: You may return the answer in any order.
Constraints:
nums.length
nums[i]