Challenge 10 Find the Symmetric Difference
Find the Symmetric Difference
The mathematical term symmetric difference (△ or ⊕) of two sets is the set of elements which are in either of the two sets but not in both. For example, for sets A = {1, 2, 3} and B = {2, 3, 4}, A △ B = {1, 4}.
Symmetric difference is a binary operation, which means it operates on only two elements. So to evaluate an expression involving symmetric differences among three elements (A △ B △ C), you must complete one operation at a time. Thus, for sets A and B above, and C = {2, 3}, A △ B △ C = (A △ B) △ C = {1, 4} △ {2, 3} = {1, 2, 3, 4}.
Create a function that takes two or more arrays and returns an array of their symmetric difference. The returned array must contain only unique values (no duplicates).
#freecodecamp #codinginterview
-
1:02:46
FULL SEND PODCAST
14 hours agoNelk Boys REVEAL What Happened on Trump Force One and Talk Upcoming Trip to an Uncontacted Tribe!
8008 -
LIVE
The Original Next Level Gaming
9 hours agoNLG's Friday Night w/Peter & Mike: Call of Duty Black Ops 6! IT HAS BEGUN!!!
1,788 watching -
LIVE
Fresh and Fit
2 hours agoAfter Hours w/ Tommy Sotomayor & Dom Lucre
9,269 watching -
2:04:49
CocktailsConsoles
3 hours agoLAST CHAPTER! | Murder By Numbers | Cocktails & Consoles Livestream
2.08K2 -
LIVE
The Quartering
3 hours agoJoe Rogan & Donald Trump LIVE Episode Reaction & Commentary
7,672 watching -
2:38:45
SNEAKO
3 hours agoI WAS ATTACKED!!!
43.9K11 -
2:55:11
Fresh and Fit
7 hours agoLil Durk Arrested For Murder-For-Hire, Diddy Case, Project Ester & MORE
74.4K46 -
3:58:27
SynthTrax & DJ Cheezus Livestreams
15 hours agoFriday Night HALLOWAVE PIZZA PARTY DJ MIX Livestream Featuring The Art of EricJohnPizzaArtist 5:00pm PST - 8:00pm EST
48K14 -
46:53
Man in America
9 hours agoCan the UN Exploit an Election Crisis to SEIZE CONTROL of the USA? w/ Alex Newman
39.3K9 -
3:06:49
tacetmort3m
11 hours ago🔴 LIVE - NOT ABANDONING THIS GAME LETS CONTINUE - GHOST OF TSUSHIMA - PART 5
29K1