Python Simple
```\nclass Solution:\n    def checkArithmeticSubarrays(self, nums: List[int], l: List[int], r: List[int]) -> List[bool]:\n        main=[]\n        for i in rang
```\nclass Solution:\n    def checkArithmeticSubarrays(self, nums: List[int], l: List[int], r: List[int]) -> List[bool]:\n        main=[]\n        for i in range(len(l)):\n            l1=(nums[l[i]:r[i]+1])\n            mi = min(l1)\n            ma=max(l1)\n            check=(ma-mi)//(len(l1)-1)\n            x=mi\n            while(x<ma):\n                if x not in l1:\n                    main.append(False)\n                    break\n                l1.remove(x)    \n                x+=check\n            if(x==ma):    \n                main.append(True)\n        return main    \n
['Ordered Set', 'Python', 'Python3']