Given an array
points
wherepoints[i] = [xi, yi]
represents a point on the X-Y plane, returntrue
if these points are a boomerang.A boomerang is a set of three points that are all distinct and not in a straight line.
1 | class Solution { |
Given an array
points
wherepoints[i] = [xi, yi]
represents a point on the X-Y plane, returntrue
if these points are a boomerang.A boomerang is a set of three points that are all distinct and not in a straight line.
1 | class Solution { |