Suppose $f:\mathbb{R} \rightarrow \mathbb{R}$ is continuous. Is $f$ constant if every point of $\mathbb{R}$ is local minimum of $f$?
What metric spaces we can use instead of $\mathbb{R}$? I guess we have same result for $f:\mathbb{R}^n \rightarrow \mathbb{R}$.