Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
56
func
(P *pair) toString() string {
57
return
P.point1.toString() +
"-"
+ P.point2.toString() +
"-"
+ strconv.FormatFloat(P.distance,
'f'
, -1, 64)
58
}
59
60
func
DivideAndConquer(P []point) *pair {
61
n := len(P)
Callers
nothing calls this directly
Calls
1
toString
Method · 0.65
Tested by
no test coverage detected