A new simple solution for find missing element problem
yuanyan opened this issue · 0 comments
yuanyan commented
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});
};