Let $S$ be the set of continuous function $f$ defined on some segment $[0,a_f], a_f \ge 0$, and such that $f(0)=0$. For $f$ and $g$ in $S$, let $$ c_{fg}=\max\{z \in [0,a_f \land a_g] : f(x)=g(x) \text{ for all } x \in [0,z] \}, $$ then, define the metric, \begin{align} d(f,g) &= a_f - c_{fg} + a_g - c_{fg} \\ &= a_f + a_g -2c_{fg}, \end{align} Is $S$ complete?
I don't really know.
On the yes side, I tried this.
That is, if $\left\{ f_n \right\}$ is Cauchy, then
$$
\lim_{n,m \to \infty} a_n - c_{n,m} + a_m - c_{n,m} = 0,
$$
where $f_n$ is defined on $[0,a_n]$ and $f_m$ is defined on $[0,a_m]$.
I don't see why the $c_{n,m}$ should go to a limit.
On the no side, I tried this. That is the function sequence $$ f_n(0)=0,\\ f_n\left(1/n\right)=n, $$ which converges to the map $\{0\} \mapsto \{0\}$ in $S$.