56 void Update(
int num_decreases,
int num_increases) {
57 if (num_decreases == num_increases) {
58 num_changes_ += num_decreases + num_increases;
59 }
else if (num_decreases < num_increases) {
60 for (
int i = num_decreases; i < num_increases; ++i)
Increase();
61 num_changes_ += 2 * num_decreases;
63 for (
int i = num_increases; i < num_decreases; ++i)
Decrease();
64 num_changes_ += 2 * num_increases;