mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-12 14:41:34 +08:00
6 lines
183 B
Go
6 lines
183 B
Go
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])
|
|
}
|