.What does mystery( ) do?
void mystery(ArrayList nums, int target) {
int i;
int count;
count = 0;
for(i = 0; i < nums.size(); ++i) {
if(nums.get(i) < target) {
++count;
}
}
return count;
}
Returns the index of the first element less than target
Returns the number of elements less than target
Always returns zero due to a logic error
Returns the number of elements in the ArrayList due to a logic error