[Python]: Simple Python: Beats 99% in time & 100% in space
\nclass Solution:\n    def checkArithmeticSubarrays(self, nums: List[int], l: List[int], r: List[int]) -> List[bool]:\n        if(not nums):\n            return
```\nclass Solution:\n    def checkArithmeticSubarrays(self, nums: List[int], l: List[int], r: List[int]) -> List[bool]:\n        if(not nums):\n            return []\n        result = []\n        \n\t\t#helper method\n        def isArithmetic(split):\n            split.sort()\n            d = abs(split[1]-split[0])\n            for i in range(2,len(split)):\n                if(abs(split[i]-split[i-1])==d):\n                    continue\n                else:\n                    return False\n            return True\n                \n        for a,b in zip(l,r):\n\t\t\t#edge case check\n            if(abs(a-b)+1<2):\n                result.append(False)\n            else:\n                split = nums[a:b+1]\n                if(isArithmetic(split)):\n                    result.append(True)\n                else:\n                    result.append(False)\n        return result\n        \n        \n```
[]