let res1 = [1, 2, 3, 4, 5].reduce(0, ^)
let res2 = [1, 2, 4, 5].reduce(0, ^)
res1 ^ res2 // returns missing value 3
You can use XOR to find and restore a missing value! Thanks Primeagen. :p
let res1 = [1, 2, 3, 4, 5].reduce(0, ^)
let res2 = [1, 2, 4, 5].reduce(0, ^)
res1 ^ res2 // returns missing value 3
You can use XOR to find and restore a missing value! Thanks Primeagen. :p
Carl Sagan says something very important, a strong message that didn't lose any validity since then.
Carl Sagan says something very important, a strong message that didn't lose any validity since then.