3046_分割数组

func isPossibleToSplit(nums []int) bool {
    
}
func isPossibleToSplit(nums []int) bool {
    cnt := make(map[int]int)
    for _, v := range nums {
        cnt[v]++
        if cnt[v] > 2 {
            return false
        }
    }
    return true
}