three Sum Closest Algorithm

ICP is often used to restore 2D or 3D surfaces from different scans, to localize robots and achieve optimal path planning (particularly when wheel odometry is unreliable due to slippery terrain), to co-register bone models, etc. Iterative nearest point (ICP) is an algorithm used to minimize the difference between two clouds of points.

three Sum Closest source code, pseudocode and analysis