Here is the question. I think i have have missed some of the test case , Please help figuring them out.
My Algorithm
- Consider only that point which are closest to the current point.
- Do this with every point.
- Store this in a list .
- Print the list.
Here is the code.