The minimum value of f(x) = |x − 1| + |x − 2| + |x − 3| is:
The minimum value of f(x) = |x − 1| + |x − 2| + |x − 3| is:
- A. 2
- B. 1
- C. 3
- D. 4
Answer: A) 2
Explanation: f(x) is sum of distances from 1, 2, 3. The minimum occurs at median x = 2. f(2) = |2−1| + |2−2| + |2−3| = 1 + 0 + 1 = 2.
0 Answers
Log in to post your own answer or join the discussion.
No comments yet — start the discussion.