mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-05 08:27:30 +08:00
add: leetcode 1791 solution
This commit is contained in:
@ -0,0 +1,8 @@
|
||||
package leetcode
|
||||
|
||||
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]
|
||||
}
|
Reference in New Issue
Block a user