Reviewing all cards from Basic Java Vocab, 14 cards remaining. Finish
Linear Search
This is a very straightforward loop comparing every element in the array with the key. As soon as an equal value is found, it returns. If the loop finishes without finding a match, the search failed and -1 is returned.
Click or [SPACE] to show