In the self check, you state " Write two C++ functions to find the minimum number in an array. The first function should compare each number to every other number on the array. O(n2)O(n2). The second function should be linear O(n)O(n)." Do they have to write the program? The questions Q-4 and Q-5 do not seem to have anything to do with O(n^2) and O(n).
In the self check, you state " Write two C++ functions to find the minimum number in an array. The first function should compare each number to every other number on the array. O(n2)O(n2). The second function should be linear O(n)O(n)." Do they have to write the program? The questions Q-4 and Q-5 do not seem to have anything to do with O(n^2) and O(n).