hi guys,

I have a problem to solve.

A = 12000, B is a set of numbers B = {10, 7, 1000, 200, 700, 500, .....}

B usually has about 300 items numbers.

It is necessary to find a subset whose maximum sum is less than A = 1200 in number B.[/code]

I tried to solve this problem but it was difficult for me.

Please help me.

Thank you!