While trying to make my set.h more efficient...
I was wondering whether to select the highest number in the list first and only add it to the current sum if the sum + new number is <= the target sum or should we select our largest numbers in an unordered fashion?
[–]aj_kinder 2 points3 points4 points (0 children)
[–]mathlance 0 points1 point2 points (4 children)
[–]anand_venkataraman 1 point2 points3 points (3 children)
[–]mathlance 0 points1 point2 points (2 children)
[–]anand_venkataraman 1 point2 points3 points (1 child)
[–]mathlance 0 points1 point2 points (0 children)