C# solution | Simple to understand
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\npublic class Solution {\n    public IList<bool> CheckArithmeticSubarrays(int[] nums, int[] l, int[] r) {\n        List<bool> result = new List<bool>();\n        \n        for(int i = 0; i < l.Length; i++) {\n            // Create a new sub-array for the current l,r\n            int offset = r[i] - l[i] + 1;\n            int[] temp = new int[offset];\n            Array.Copy(nums, l[i], temp, 0, offset);\n\n            result.Add(isArithmetic(temp));\n        }\n\n        return result;\n    }\n\n    private bool isArithmetic(int[] arr) {\n        Array.Sort(arr);\n        int diff = arr[0] - arr[1];\n\n        for(int i = 2; i < arr.Length; i++) {\n            if(diff != arr[i-1] - arr[i]) {\n                return false;\n            }\n        }\n\n        return true;\n    }\n}\n```
['C#']