in reply to Array lookup
TIMTOWTDI
The maximum number of comparisons would be the length of array1 + array2. Of course you have the overhead of the sorting to take into account, put perhaps you are lucky and they are sorted to start with (such as when they are the result of a database select).
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
|
|---|