How can I check to seeif 2 arrays contain the same element using nothing worse thanlinear runtime? (Java)
For example if I have2 arrays with elements {7, 8, 5, 4, 3} and {10, 12, 15, 20, 8}
I would want it toreturn true since there is an 8 in each array.
Expert Answer
An answer will be send to you shortly. . . . .