easy python solution|| beats 92%
\nclass Solution:\n    def checkArithmeticSubarrays(self, nums: List[int], l: List[int], r: List[int]) -> List[bool]:\n        d = {}\n        ans = []\n       
```\nclass Solution:\n    def checkArithmeticSubarrays(self, nums: List[int], l: List[int], r: List[int]) -> List[bool]:\n        d = {}\n        ans = []\n        \n        for i in range(len(l)):\n            d[i] = nums[l[i]:r[i]+1]\n        for ele in d:\n            j = 0\n            d[ele].sort()\n            for i in range(2,len(d[ele])):\n                if d[ele][i]-d[ele][i-1]!=d[ele][1]-d[ele][0]:\n                    ans.append(False)\n                    break\n                j+=1\n            if j==len(d[ele])-2:\n                ans.append(True)\n        return ans\n```
['Python3']