GO Solution For UVa 10245 - The Closest Pair Problem. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

Given a set of points in a two dimensional space, you will have to find the distance between the closest two points.

Input The input file contains several sets of input. Each set of input starts with an integer N(0 ≤ N ≤ 10000), which denotes the number of points in this set. The next N line contai


You can find the full details of the problem The Closest Pair Problem at UVa Online Judge

Sample Input

0 0
10000 10000
20000 20000
0 2
6 67
43 71
39 107
189 140

Sample Output


Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985