Python3 Easy to understand solution
\nres = []\n        \nfor i in range(len(l)):\n\n\tarr = nums[l[i]:r[i]+1]\n\n\tarr.sort()\n\tcheck = False\n\n\tdiff = arr[1] - arr[0]\n\n\tfor i in range(1,le
```\nres = []\n        \nfor i in range(len(l)):\n\n\tarr = nums[l[i]:r[i]+1]\n\n\tarr.sort()\n\tcheck = False\n\n\tdiff = arr[1] - arr[0]\n\n\tfor i in range(1,len(arr)-1):\n\n\t\tnewdiff = arr[i+1] - arr[i]\n\n\t\tif newdiff != diff:\n\t\t\tcheck = True\n\t\t\tres.append(False)\n\t\t\tbreak\n\tif not check:\n\t\tres.append(True)\n\nreturn res\n```
[]