In Exercises $15-20,$ sketch the graph of each function and determine
whether the function has any absolute extreme values on its domain.
Explain how your answer is consistent with Theorem $1 .$
$$
g(x)=\left\{\begin{array}{ll}{-x,} & {0 \leq x<1} \\ {x-1,} & {1 \leq x \leq 2}\end{array}\right.
$$