Update Lintcode_MinAdjustmentCost