Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

The the closest pair has distance zero when there are two identical points. Is this correct answer or should the closest two points with distance at least zero be returned?

0
Posted

The the closest pair has distance zero when there are two identical points. Is this correct answer or should the closest two points with distance at least zero be returned?

0

If there are two different points with the same x and y coordinates then the correct answer is to return such a pair of points (that will have distance 0).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123