3046-split-the-array

DevGod
Vtuber
/** * @param {number[]} nums * @return {boolean} */var isPossibleToSplit = function(nums) { return Object.values(_.countBy(nums)).every( (el)=>el<=2);};
/** * @param {number[]} nums * @return {boolean} */var isPossibleToSplit = function(nums) { return Object.values(_.countBy(nums)).every( (el)=>el<=2);};