package
Version:
v0.0.0-...-36687a4
Opens a new window with list of versions in this module.
Published: Oct 28, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Point struct {
X, Y int
}
Point has an X and Y coordinate.
KNearestPoints returns the k-nearest points closest to a center point.
Runs in O(N log K) time.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.