hi, I am looking for the code for the following program. Consider a set of elements and a given sum. You need to find a subset of elements whose sum equals or is greater[given there are more than one subset, print the one whose sum is closest to the number] to that number.
PS: it's similar to subset sum problem.
thanks
anaychowdhary 0 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
anaychowdhary 0 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
anaychowdhary 0 Newbie Poster
anaychowdhary 0 Newbie Poster
NathanOliver 429 Veteran Poster Featured Poster
anaychowdhary 0 Newbie Poster
NathanOliver 429 Veteran Poster Featured Poster
arkoenig 340 Practically a Master Poster
anaychowdhary 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.