scala twoliner
scala []\nobject Solution {\n  def minimizeSum(nums: Array[Int]): Int =\n    lazy val sorted = nums.sorted\n    Iterator(\n      sorted(sorted.length-1) - sorte
```scala []\nobject Solution {\n  def minimizeSum(nums: Array[Int]): Int =\n    lazy val sorted = nums.sorted\n    Iterator(\n      sorted(sorted.length-1) - sorted(2),\n      sorted(sorted.length-2) - sorted(1),\n      sorted(sorted.length-3) - sorted(0)\n    ).min\n}\n```
['Greedy', 'Sorting', 'Scala']