[Golang] Two steps brute force solution
Get the people who need learn other language then store in a map.\n2. Check the number of people need to learn if teaching them from language "1" to "n". \nThe 
1. Get the people who need learn other language then store in a map.\n2. Check the number of people need to learn if teaching them from language "1" to "n". \nThe minimum number is we need.\n```\nfunc minimumTeachings(n int, languages [][]int, friendships [][]int) int {\n\tvar need_learn_people map[int]bool = make(map[int]bool)\n\tfor _, r := range friendships {\n\t\tvar find bool = false\n\t\tfor _, n0 := range languages[r[0]-1] {\n\t\tloop:\n\t\t\tfor _, n1 := range languages[r[1]-1] {\n\t\t\t\tif n0 == n1 {\n\t\t\t\t\tfind = true\n\t\t\t\t\tbreak loop\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif find {\n\t\t\tcontinue\n\t\t}\n\t\tneed_learn_people[r[0]] = true\n\t\tneed_learn_people[r[1]] = true\n\t}\n\tvar m int = len(need_learn_people)\n    var res int = m\n\tfor i := 1; i <= n; i++ {\n\t\tvar cnt int = 0\n\t\tfor person,_ := range need_learn_people{\n\t\t\tfor _,lan := range languages[person - 1] {\n\t\t\t\tif lan == i {\n\t\t\t\t\tcnt++\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tres = min_int(res, m-cnt)\n\t}\n\treturn res\n}\nfunc min_int(a,b int)int{\n\tif a < b {\n\t\treturn a\n\t}else{\n\t\treturn b\n\t}\n}
['Go']