Solución
solution.tsTypeScript
def distance_between_points(x1: float, y1: float, x2: float, y2: float) -> float:
first = (x2 - x1) ** 2
second = (y2 - y1) ** 2
result = (first + second) ** 0.5
return round(result, 4)0respuestas
def distance_between_points(x1: float, y1: float, x2: float, y2: float) -> float:
first = (x2 - x1) ** 2
second = (y2 - y1) ** 2
result = (first + second) ** 0.5
return round(result, 4)Aún no hay respuestas
¡Sé el primero en responder!
Recuerda ser amable. Estás comentando la solución de otra persona. Comparte tu perspectiva de forma constructiva y respetuosa.