1️⃣-liner_brute_force.py😁
Code\njs\nclass Solution:\n    def checkArithmeticSubarrays(self, nums: List[int], l: List[int], r: List[int]) -> List[bool]:\n        return[all(arr[i+1]-arr[i
# Code\n```js\nclass Solution:\n    def checkArithmeticSubarrays(self, nums: List[int], l: List[int], r: List[int]) -> List[bool]:\n        return[all(arr[i+1]-arr[i]==arr[1]-arr[0]for i in range(len(arr)-1))for arr in[sorted(nums[a:b+1])for a,b in zip(l,r)]] \n```\n\n![](https://miro.medium.com/v2/resize:fit:1400/1*-EcY1mOZ_fDmCFizJvsMkg.jpeg)
['Python3']