Python Solution
\n# Code\npython3 []\nclass Solution:\n    def findValueOfPartition(self, nums: List[int]) -> int:\n        nums.sort()\n        res = float(\'inf\')\n\n       
\n# Code\n```python3 []\nclass Solution:\n    def findValueOfPartition(self, nums: List[int]) -> int:\n        nums.sort()\n        res = float(\'inf\')\n\n        for i in range(1, len(nums)):\n            res = min(res, nums[i] - nums[i - 1])\n\n        return res\n```
['Python3']