Home > Back-end >  The location of the local extremum C output...
The location of the local extremum C output...

Time:09-27

An array {0, 0, 2.2, 0, 0, 0, 3.4 0, 1.5, 0, 0, 0, 1.8, 0, 0, 2.5, 0, 0, 0, 4, 0, 0, 3.8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
Arrays features: for the dynamic array, May 100 values, May 1000 values; Non-zero value between 0 up to 10,

Process: after need to eliminate the zero value, value compared with the data of local minima (red font) for local maximum values,


Output: the second maximum location (4 location is 19,
  • Related