Unique Number of Occurrences Solutions in GoNumber 1207Difficulty EasyAcceptance 71.6%Link LeetCodeOther languages C++SolutionsGo solution by halfrost/LeetCode-Gopackage leetcode func uniqueOccurrences(arr []int) bool { freq, m := map[int]int{}, map[int]bool{} for _, v := range arr { freq[v]++ } for _, v := range freq { if _, ok := m[v]; !ok { m[v] = true } else { return false } } return true}package leetcode func uniqueOccurrences(arr []int) bool { freq, m := map[int]int{}, map[int]bool{} for _, v := range arr { freq[v]++ } for _, v := range freq { if _, ok := m[v]; !ok { m[v] = true } else { return false } } return true }