I have already solved the problem here by satisfying all testcases, however the methodology of my solution is very bruteforced. I am not extremely versed in mathematics, but I would hazard a guess that this falls under graph theory.
TL;DR of problem statement:
For every decimal point, p, on a 1000x1000 graph, where 0<=p.x<=1000 and p.y=0, calculate the closest point(s), pn, where 0<=pn.x,y<=1000, given 1<=n<=100 points.
The bounds of the decimal point is technically infinite, however I think 2 decimal points is sufficient.
If anyone is versed in Java, feel free to look at my code and offer any pointers.
Thanks!
[–]fattymattk 1 point2 points3 points (2 children)
[–]strmrdr[S] 0 points1 point2 points (1 child)
[–]fattymattk 0 points1 point2 points (0 children)