1 votes 1 votes Algorithms algorithms time-complexity test-series + – nikkey123 asked Jan 3, 2018 • edited Jul 18, 2022 by makhdoom ghaya nikkey123 413 views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Anu007 commented Jan 3, 2018 reply Follow Share by greedy it will O(nlogn) , by dynamic may be in O(n) 0 votes 0 votes nikkey123 commented Jan 3, 2018 reply Follow Share can u explain me how u have done it 0 votes 0 votes rahul sharma 5 commented Jan 4, 2018 reply Follow Share Divide and conquer? What is the answer? Ref: https://www.cs.cmu.edu/~ckingsf/bioinfo-lectures/closepoints.pdf 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes using greedy approach we can solve in O(nlogn). ie. by using Kruskal's algo $ruthi answered Jan 7, 2018 $ruthi comment Share Follow See all 0 reply Please log in or register to add a comment.