in reply to Searching first array in second array.

We would need to see your code to say how it could be improved. How are you detecting duplicates? Hopefully you are using a hash.
  • Comment on Re: Searching first array in second array.

Replies are listed 'Best First'.
Re^2: Searching first array in second array.
by ack (Deacon) on Jan 19, 2010 at 16:46 UTC

    I concur with cdarke. Anytime I need to check for duplicates I always think "hash". That's not the only good use of hashes, of course. But it always seems that it is one of the areas that hashes really shine...especially for simplicity and optimized speed when you don't want to spend a lot of time trying to eek out every last microsecond of performance.

    ack Albuquerque, NM