summaryrefslogtreecommitdiffstats
path: root/Algorithms
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-03-11 17:20:12 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-11-15 17:38:44 +0100
commitec3365b10f7cc8d07926ba8377212f1793e26ba7 (patch)
tree5ff1ddad29b460867ade4cbb941475d017506479 /Algorithms
parent2c6ade9c0d7fc0b7abd2269c7c8a7cb415cbecbd (diff)
downloadcoursera-ec3365b10f7cc8d07926ba8377212f1793e26ba7.zip
coursera-ec3365b10f7cc8d07926ba8377212f1793e26ba7.tar.gz
Algorithms-I : 3-Collinear: oops I've broken it
Diffstat (limited to 'Algorithms')
-rw-r--r--Algorithms/Part-I/3-Collinear/Point.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Algorithms/Part-I/3-Collinear/Point.java b/Algorithms/Part-I/3-Collinear/Point.java
index 7307d04..bd5bbe7 100644
--- a/Algorithms/Part-I/3-Collinear/Point.java
+++ b/Algorithms/Part-I/3-Collinear/Point.java
@@ -60,7 +60,7 @@ public class Point implements Comparable<Point> {
double sq = slopeTo(q);
if (sp < sq) return -1;
if (sp > sq) return 1;
- return p.compareTo(q);
+ return 0;
}
}