It's a piecewise function. On each piece it's linear. Hence on each piece, it's either constant, or strictly monotonic (in which case, the extreme values for such a piece can only occur at the endpoints). Find the places where the pieces change. For each interval between those places, find the formula for the pieces (the absolute value symbols can be removed -- with appropriate sign changes). Find the extrema on each piece.
This approach, while algebraic, is consistent with the graphical approach, and in some sense, it can be regarded as the same approach. With that understanding, the graphical approach is the Calculus approach.