1-line Linq
\n# Code\n\npublic class Solution {\n    public bool IsPossibleToSplit(int[] nums) {\n        return nums.GroupBy(x => x).All(x => x.Count() <= 2);\n    }\n}\n
\n# Code\n```\npublic class Solution {\n    public bool IsPossibleToSplit(int[] nums) {\n        return nums.GroupBy(x => x).All(x => x.Count() <= 2);\n    }\n}\n```
['C#']