in reply to Difference of array
It assumes that each element is unique in a given array
Is that the case for your arrays? If not, it would explain the difference.
Update: See almut's reply below, this code is nonesense.
(Update:) I'd just store one array in the hash, something along these lines: (untested)
(Second update): Any idea why the answer in the FAQs makes such an IMHO needless assumption? The code without that assumption isn't much longer, and although I haven't benchmarked it I don't think it's much slower either (I even think it uses less memory).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Difference of array
by almut (Canon) on May 15, 2009 at 09:09 UTC | |
by moritz (Cardinal) on May 15, 2009 at 09:18 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |