Thu, 01 Jul 2010 06:17:50 -0300, Renato Fabbri wrote: > i need to find which elements of an array sums up to an specific value > > any idea of how to do this? Sounds like the knapsack problem http://en.wikipedia.org/wiki/Knapsack_problem