Alice may eat n / 2 = 3 of the 6 candies. Her plate has 3 seats, and she wants as many different types on it as possible.
the candy bag (6 candies)
✓ new type, takes a seat✕ repeat, adds no variety
Alice's plate: n / 2 = 3 seats
0 types / 3 seats
answer = min(types, n / 2) = min(0, 3)