You are given an integer N and an array of N integers. These numbers represent a graph of the function (Figure 2) with integer values in integer coordinates. In data analysis, it is often necessary to find cases of fluctuations of some indicator, i.e. frequent changes in a short time. Let the fluctuation indicator be calculated as follows, for each value in the integer coordinate, which is a local maximum or minimum, 2 points are added, for those that are not such, 1 point is subtracted. Find the interval in which the fluctuation index is maximum.
| Гарантия на работу | 1 год |
| Средний балл | 4.54 |
| Стоимость | Назначаете сами |
| Эксперт | Выбираете сами |
| Уникальность работы | от 70% |