I have an array, I need to return new array with the values in range (from a to b) BUT! I want to return without duplicates. I wrote the script below but it doesn't work properly.
The question is this:Given a non-empty array of integers, every element appears twice except for one. Find that single one.
i know there has many answer for unique arraybut they can't handle with array of arraywhat i want issource array