Give an example that contradicts this sentence :
$f:(0,1]\to\Bbb R$ is a continuous and bounded function in $(0,1]$ then : $f$ has maximum or minimum.
I have understood that $\sin(1/x)$ could be a right contradiction but I can't understand why this works ?
Could anyone here explain me ? Thanks :)