Python Easy Solution
\nclass Solution:\n    def checkArithmeticSubarrays(self, nums: List[int], l: List[int], r: List[int]) -> List[bool]:\n        \n        b = 0\n        res = []
```\nclass Solution:\n    def checkArithmeticSubarrays(self, nums: List[int], l: List[int], r: List[int]) -> List[bool]:\n        \n        b = 0\n        res = []\n        \n        for i in range(len(l)):\n            a = sorted(nums[l[i]:r[i]+1])\n            if len(a)==1 or len(a)==2:\n                res.append(True)\n                continue\n            for j in range(1,len(a)-1):\n                if a[j-1]-a[j] == a[j]-a[j+1]:\n                    b = 1\n                else:\n                    b = 0\n                    break\n            if b==1:\n                res.append(True)\n            else:\n                res.append(False)\n        return res\n```\n***DO UPVOTE***
['Sorting', 'Python']