Skip to content

3046-split-the-array

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