3 ms·Linear search is O(n), but here, n is 5, and O(5) is O(1).by twic 6y agoLinear search is O(n), but here, n is 5, and O(5) is O(1).