# LeetCode 16 – 3Sum Closest

#### Posted on December 25, 2013

##### Last updated on December 25, 2013

Solution to LeetCode 3Sum Closest problem.

The idea is the same as in the 3SUM question. Sort the array, and in $$O(n^2)$$ time find the closest value.

Markdown SHA1: cf56b69744b9c441914a2804b9fd6dcbc5d74a56