implement divide and conquer

This commit is contained in:
2018-12-12 18:48:54 -03:00
parent e37384d18f
commit 6ac113d408
4 changed files with 159 additions and 73 deletions

View File

@@ -23,5 +23,5 @@
* @return Retorna la distancia entre los 2 puntos
*/
double distance(point_t point1, point_t point2) {
return sqrt(pow(point1.x - point2.x, 2) + pow(point1.y - point2.y, 2));
return pow(point1.x - point2.x, 2) + pow(point1.y - point2.y, 2);
}