algorithms.tutorialhorizon.com

Given an array, find three-element sum closest to Zero | Algorithms

Given an array of integers, find the sum of any three elements which is closest to zero. Array may contain positive and negative elements. Example: Given Input: [-1, 4, -2, 5, 10, -5] Minimum Sum with three elements is: 1 Explanation: -1, 4, -2 sums to -1