Skip to content

Files

Latest commit

Jul 22, 2019
3176997 · Jul 22, 2019

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jul 22, 2019
Jul 22, 2019

Given a list of points, a central point, and an integer k, find the nearest k points from the central point.

For example, given the list of points [(0, 0), (5, 4), (3, 1)], the central point (1, 2), and k = 2, return[(0, 0), (3, 1)].