add: 220218-CN [golang]

This commit is contained in:
Lam Haoyin 2022-02-18 00:06:19 +08:00
parent 2a1aedca1f
commit 095e769cb0
No known key found for this signature in database
GPG Key ID: 8C089CB1A2B7544F
1 changed files with 12 additions and 0 deletions

12
2202/220218-CN.go Normal file
View File

@ -0,0 +1,12 @@
package main
func findCenter(edges [][]int) int {
if edges[0][0] == edges[1][0] || edges[0][0] == edges[1][1] {
return edges[0][0]
}
return edges[0][1]
}
func main() {
}