There are 210 Invoices and 1700 bills – these bills add up to these invoices

The association between  bills and invoices is lost . The only way to
match them is by adding them up to correct amounts that are equal to
the invoices.

For Example :  there were 2 invoices for 80, 210 and you have bills
for these 50, 10 ,10, 30 , 20, 70, 100 values

One of the possible solution is :

80=50 + 30
210= 10 + 10 +20 + 70 + 100

Other possible solution is

80=50 + 10 + 20
210= 30 +20 + 70 + 100


What is the best possible way to get all solutions ? Remember you are
dealing with big datasets

-Kabir

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to