Find all $d > 0$ that for any function $f$ such as $f(0) = f(1)$ for some $x_0 \in [0, 1 - d]$: $$ f(x_0) = f(x_0 + d), x_0 \in [0, 1 - d] $$
I suspect the answer is something like $(0, 0.5) \cup \{1\}$ as, obviously, for the function $f(x) = sin(2\pi x)$ $d$ cannot be greater than $0.5$ (except 1), but I can't prove that.
$f$ is continuous on $[0, 1]$.