3 ms·
I don’t see what’s complex about it: make a copy of the first array excluding any elements that exist in the second. Only one outcome possible.
by ricardobeat 8y ago
I don’t see what’s complex about it: make a copy of the first array excluding any elements that exist in the second. Only one outcome possible.
- lifthrasiir 8y agoThe multiplicity is important if you see an array as a bag, i.e. a multiset. Some may reasonably expect the pairwise difference, which is indeed a default mode for vectors and matrixes (even C++ has one, `std::valarray`). There are also tons of implementation concerns I haven't ever dabbled.