[Python3] Brute force
\nclass Solution:\n    def checkArithmeticSubarrays(self, nums: List[int], l: List[int], r: List[int]) -> List[bool]:\n        ans = []\n        \n        def f
```\nclass Solution:\n    def checkArithmeticSubarrays(self, nums: List[int], l: List[int], r: List[int]) -> List[bool]:\n        ans = []\n        \n        def find_diffs(arr):\n            \n            arr.sort()\n\n            dif = []\n            \n            for i in range(len(arr) - 1):\n                dif.append(arr[i] - arr[i + 1])\n            \n            return len(set(dif)) == 1\n        \n        for i , j in zip(l , r):\n            ans.append(find_diffs(nums[i:j + 1]))\n        \n        return ans\n```
['Python3']