Capgemini
Company
Programming
Functions
Find min value of fn:
|-5-x| + |2-x|+|6-x|+10-x|; where x is an integer?
0/17/23/19
Read Solution (Total 10)
-
- Answer is 19 using inequality rule
- 9 years agoHelpfull: Yes(9) No(0)
- min value should be zero
x=0 or x=13/4 - 9 years agoHelpfull: Yes(3) No(2)
- why we shud take X=4?
- 9 years agoHelpfull: Yes(3) No(0)
- According to me, when x=-1 then
(-5+1)+(2+1)+(6+1)+10-(-1)
=>-4+3+7+11
=>21-4
=>17 - 8 years agoHelpfull: Yes(3) No(0)
- can sm1 make it more clear?????????/
- 9 years agoHelpfull: Yes(2) No(0)
- 7+0+4+6=17
- 8 years agoHelpfull: Yes(2) No(0)
- 19
| a | + | b | + | c | + | d | ≥ | a + b + c + d |and
| a | = | −a |
- 9 years agoHelpfull: Yes(0) No(5)
- As we know that |-x|=x
so,if x=4
then,|-5-4|+|2-4|+|6-4|+|10-4|=|-9|+|-2|+|2|+|6|
=9+2+2+6=19 - 9 years agoHelpfull: Yes(0) No(3)
- can any one explain me briefly
- 8 years agoHelpfull: Yes(0) No(0)
- In this problem they asked min. value in function so,here,x=2
because all values of x are greater than 2
put x=2,then ====7+4+8=19 - 4 years agoHelpfull: Yes(0) No(0)
Capgemini Other Question