AlgoMaster Logo

K Closest Points to Origin

points=[[1,3],[-2,2],[5,8],[0,1],[-3,-1]],k=2
0 / 15
[1,3][-2,2][5,8][0,1][-3,-1]
algomaster.io
Step:Start: Initialize algorithm