easy python solution
\n\nclass Solution:\n    def findValueOfPartition(self, nums: List[int]) -> int:\n        nums.sort()\n        res=1000000008\n        for i in range(len(nums))
\n```\nclass Solution:\n    def findValueOfPartition(self, nums: List[int]) -> int:\n        nums.sort()\n        res=1000000008\n        for i in range(len(nums)):\n            if res>nums[i]-nums[i-1]:\n                res=abs(nums[i]-nums[i-1])\n        return res\n```
['Python3']