[Question] — Max value of GCD for all possible pairs...
Mark all divisors of each element, in O(sqrt(n)). Then find maximum element of mark array that is marked more than twice, in O(n). →Reply kien_coi_1997 11 years ago,#^| 0 Please explain more. I don't understand anything. ...