Efficient Algorithm for comparing and iterate through two large arrays

Published: 21/10/2019
Efficient Algorithm for comparing and iterate through two large arrays
Source: STACKOVERFLOW.COM

I have this problem: I want to iterate and compare each item of array1 against each item of array2, both arrays have the same lenght. When the value of both items coincide I store the value j in my indexOfInterest[] array for later use. This is the code that I use, works well but its extremely slow comparing large arrays (thousands of items), can anyone help me in implement an efficient algorithm

Read more
Related news
Comment
FACEBOOK