Problem 1232 · Easy

Check If It Is a Straight Line

Decide whether a set of coordinate points all lie on one straight line. The visual draws the direction from the first two points and checks every other point against it.

Open the interactive visualisation