diff options
Diffstat (limited to 'Algorithms/Part-I')
| -rw-r--r-- | Algorithms/Part-I/3-Collinear/Fast.java | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/Algorithms/Part-I/3-Collinear/Fast.java b/Algorithms/Part-I/3-Collinear/Fast.java index 60b0d25..9d12eaf 100644 --- a/Algorithms/Part-I/3-Collinear/Fast.java +++ b/Algorithms/Part-I/3-Collinear/Fast.java @@ -52,7 +52,7 @@ public class Fast          segments = new ArrayList<Point[]>();          slopes = new HashMap<Double, HashSet<Point>>(); -        for (int i = 1, n = N - 1; i < N - 3; i++, n--) +        for (int i = 1, n = N - 1; i < N - 2; i++, n--)          {              // reference [i-1] and copy [i;N[ to [0;n[              ref = pts[i - 1]; | 
