Hello guys, i’m trying to finish the Symmetric Difference challenge but i can’t seem to go anywhere.
I’ve tried every approach i could think of but i can’t seem to find the solution, and i’m starting to get actually stressed from this.
My approach is the following:
- Create an array from the arguments, containing every “set”.
- Reduce the array by comparing the accumulator to the current item, if it matches, remove the element from both arrays.
- Concatenate the accumulator to the current item.
No matter what i do, i can’t seem to get it right, what should i do?