text: Driver Code
code: $ arr = array ( 55 , 77 , 52 , 61 , 39 , 6 , 25 , 60 , 49 , 47 ) ; $ n = count ( $ arr ) ; $ target = 10 ; echo " Minimum ▁ adjustment ▁ cost ▁ is ▁ " , minAdjustmentCost ( $ arr , $ n , $ target ) ; ? >