Python3 Solution
\n\nclass Solution:\n    def findValueOfPartition(self, nums: List[int]) -> int:\n        nums.sort()\n        return min(nums[i+1]-nums[i] for i in range(len(n
\n```\nclass Solution:\n    def findValueOfPartition(self, nums: List[int]) -> int:\n        nums.sort()\n        return min(nums[i+1]-nums[i] for i in range(len(nums)-1))\n```
['Python', 'Python3']