Python Intuitive Solution - Constant Space  - Accepted
\nclass Solution:\n    def checkArithmeticSubarrays(self, nums: List[int], l: List[int], r: List[int]) -> List[bool]:\n        ans=[]\n        for i in range(le
```\nclass Solution:\n    def checkArithmeticSubarrays(self, nums: List[int], l: List[int], r: List[int]) -> List[bool]:\n        ans=[]\n        for i in range(len(l)):\n            v=sorted(nums[l[i]:r[i]+1])\n            d=None\n            if abs(l[i]-r[i])>0:\n                d=v[1]-v[0]\n            else:\n                ans.append(True)\n                continue\n            flag=True\n            for i in range(1,abs(l[i]-r[i])+1):\n                if v[i]-v[i-1]!=d:\n                    ans.append(False)\n                    flag=False\n                    break\n            if flag:\n                ans.append(True)\n        return ans\n```
[]