Collinear Points

GeeksforGeeks, “Program to check if three points are collinear” (https://www.geeksforgeeks.org/dsa/program-check-three-points-collinear/): Given three points (x1,y1), (x2,y2), and (x3,y3) with integer coordinates, return true if they lie on one straight line and false otherwise. Coordinates are supplied as six scalar arguments in that order. The test is exact and does not use floating-point slopes.

Examples
Input: [1,2,3]
Output: 0
Hints

Collinear Points

GeeksforGeeks, “Program to check if three points are collinear” (https://www.geeksforgeeks.org/dsa/program-check-three-points-collinear/): Given three points `(x1,y1)`, `(x2,y2)`, and `(x3,y3)` with integer coordinates, return `true` if they lie on one straight line and `false` otherwise. Coordinates are supplied as six scalar arguments in that order. The test is exact and does not use floating-point slopes.