mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-13 23:40:35 +08:00
添加 18 题
This commit is contained in:
5
leetcode/1037.Valid-Boomerang/1037. Valid Boomerang.go
Normal file
5
leetcode/1037.Valid-Boomerang/1037. Valid Boomerang.go
Normal file
@ -0,0 +1,5 @@
|
||||
package leetcode
|
||||
|
||||
func isBoomerang(points [][]int) bool {
|
||||
return (points[0][0]-points[1][0])*(points[0][1]-points[2][1]) != (points[0][0]-points[2][0])*(points[0][1]-points[1][1])
|
||||
}
|
Reference in New Issue
Block a user