scala sliding oneliner
scala\nobject Solution {\n  def findValueOfPartition(nums: Array[Int]): Int = \n    nums.sorted.sliding(2,1).map(a => a.last-a.head).min\n}\n
```scala\nobject Solution {\n  def findValueOfPartition(nums: Array[Int]): Int = \n    nums.sorted.sliding(2,1).map(a => a.last-a.head).min\n}\n```
['Two Pointers', 'Sliding Window', 'Sorting', 'Scala']