Announcements:
HW1 due today 11:59p. PA1 due 02/03, 11:59p. Quizzes
Warm-up: Weird Mystery Function
Good name? Does it work? Running time:
void ___________ (vector<string> & candy, int loc){ // assumes candy[0:loc-1] is sorted, loc valid string temp = candy[loc]; int j = loc; while (j > 0 && candy[j-1] > temp) { candy[j] = candy[j-1]; j--; } candy[j] = temp; } 1 2 3 4 5 6 7 8 9