Note that, in each case, the number of extrema is N+2, that is, 6.
每一個例子中的極端有N+2個，也就是6個。