+ 1
local minimum
local minimum. maybe one of you understand what it is? the number that is larger than all its neighbors. for example, 3, 4, 5, 0, 7, 1. Is the local minimum only zero? or is 1 also a local minimum? and 3 too?
3 ответов
+ 2
This link can surely help you... (If you have an idea about local minima and Maxima in function, basic Maths, I assume)
https://stackoverflow.com/questions/29608044/large-list-find-all-minima-of-list-JUMP_LINK__&&__python__&&__JUMP_LINK
+ 1
The number is smaller than all its neighbours you mean...right?
3 has one neighbour
This is 4
All neighbours are larger
3 is a local minimum.
+ 1
it dawned on me