+ 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 Answers

+ 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-python

+ 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

Hot today

What is indentations... ?

6 Votes

int num = 2;
int x = 3;
if(num >= 2) {
if(x > 4) { num = 3; }
else { num = 4; }
}
else {x = 1; }

1 Votes

Need solution

0 Votes

About Java McQ

0 Votes

YouTube Link Finder

0 Votes

Need solution

0 Votes