A new simple solution for find missing element problem
yuanyan opened this issue · comments
https://github.com/blakeembrey/code-problems/tree/master/find-missing-element @blakeembrey
var findMissingElement = function (a, b) {
return a.reduce(function(x,y){return x+y}) - b.reduce(function(x,y){return x+y});
};