Cut an array into k contiguous parts, each costing its first plus last element. How far apart are the cheapest and the most expensive split?
Cut an array into k contiguous parts, each costing its first plus last element. How far apart are the cheapest and the most expensive split?
Opens with the full question.