Given an array points where points[i] = [xi, yi] represents a point on the X-Y plane, return true if these points are a boomerang.

A boomerang is a set of three points that are all distinct and not in a straight line.

&nbsp;
Example 1:
Input: points = [[1,1],[2,3],[3,2]]
Output: true
Example 2:
Input: points = [[1,1],[2,2],[3,3]]
Output: false

&nbsp;
Constraints:


	points.length == 3
	points[i].length == 2
	0 &lt;= xi, yi &lt;= 100


class Solution:
    def isBoomerang(self, points: List[List[int]]) -> bool:
        a,b,c=points
        return (b[1]-a[1])*(c[0]-b[0]) != (c[1]-b[1])*(b[0]-a[0])
class Solution {
    public boolean isBoomerang(int[][] points) {
        double a, b, c, d, area;
        a=points[0][0]-points[1][0];
        b=points[1][0]-points[2][0];
        c=points[0][1]-points[1][1];
        d=points[1][1]-points[2][1];
        area=0.5*((a*d)-(b*c));
        return area!=0;
    }
}
class Solution {
public:
    bool isBoomerang(vector<vector<int>>& points) {
        if (points.size()<=2) return false;
        int x0=points[0][0], y0=points[0][1];
        int x1=points[1][0], y1=points[1][1];
        int x2=points[2][0], y2=points[2][1];
        int dx1=x1-x0, dy1=y1-y0;
        int dx2=x2-x1, dy2=y2-y1;
        if (dy1*dx2==dy2*dx1) return false;
        return true;
    }
};
var isBoomerang = function(points) {
    
 // if any two of the three points are the same point return false;
 
 if (points[0][0] == points[1][0] && points[0][1] == points[1][1]) return false;
 if (points[0][0] == points[2][0] && points[0][1] == points[2][1]) return false;
 if (points[2][0] == points[1][0] && points[2][1] == points[1][1]) return false;
 
 // if the points are in a straight line return false;
 
 let slope1 = (points[0][1] - points[1][1]) / (points[0][0] - points[1][0]);
 let slope2 = (points[1][1] - points[2][1]) / (points[1][0] - points[2][0]);
 if (points[0][0] == points[1][0] && points[0][0] === points[2][0]) return false;
 if (points[0][1] == points[1][1] && points[0][1] === points[2][1]) return false;
 
 if (slope1 === slope2) return false;
 
 return true;
 
};
Valid Boomerang