Created
November 19, 2016 17:17
-
-
Save solebox/27d50ab5ae242755ec8fa0791ae24a95 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public BruteCollinearPoints(Point[] points){ | |
if (points == null) | |
throw new NullPointerException(); | |
for (int p1 = 0; p1 < points.length; p1++){ | |
for (int p2 = 0; p2 < points.length; p2++){ | |
for (int p3 = 0; p3 < points.length; p3++){ | |
for (int p4 = 0; p4 < points.length; p4++){ | |
if (p1 != p2 && p1 != p3 && p1 != p4 && p2 != p3 && p2 != p4 && p3 != p4){ | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment