1 votes 1 votes what is the approach of this question , Is it that first we will traverse all the pairs then find the minimum distance between all the pairs Algorithms algorithms time-complexity + – radha gogia asked Jul 31, 2015 • retagged Jun 26, 2022 by makhdoom ghaya radha gogia 1.1k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes By divide and conquer T(n)= 2T(n/2)+O(n) = O(nlogn ) here distance between pairs calculate by ab=squr((ax-bx)^2+(ay-by)^2) ref : http://www.dcs.gla.ac.uk/~pat/52233/slides/ClosestPoints1x1.pdf minal answered Jul 31, 2015 minal comment Share Follow See all 0 reply Please log in or register to add a comment.