Blog on algorithms, puzzles, programming .... musings of a computer engineer.
Array subset with sum closest to given number
Given an array, Design an algorithm to find the sub vector with the sum closest to zero. extenstion: What if we wished to find the sub vector with the sum closest to a given real number t?
No comments:
Post a Comment