✅ Java Solution | Easy
Code\nJava []\npublic boolean isPossibleToSplit(int[] nums) {\n\tMap<Integer, Integer> map = new HashMap<>();\n\tfor(int num : nums) map.put(num, map.getOrDefau
# Code\n```Java []\npublic boolean isPossibleToSplit(int[] nums) {\n\tMap<Integer, Integer> map = new HashMap<>();\n\tfor(int num : nums) map.put(num, map.getOrDefault(num, 0)+1);\n\n\tfor(int val : map.values()){\n\t\tif(val>2) return false;\n\t}\n\n\treturn true;\n}\n```
['Java']