MCPcopy
hub / github.com/arnauddri/algorithms / toString

Method toString

algorithms/maths/closest-pair/closest_pair.go:56–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56func (P *pair) toString() string {
57 return P.point1.toString() + "-" + P.point2.toString() + "-" + strconv.FormatFloat(P.distance, 'f', -1, 64)
58}
59
60func DivideAndConquer(P []point) *pair {
61 n := len(P)

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected