there are n number of items available in the shop price[] {size n} gives the cost of each item and there are quantity[] {size n} means that there are quantity[i] number of i'th item
the shop keeper provides some free items if you buy k nos of item i, you will get 1 item j for free (i may be equal to j) also there can be such offers for many items what you have to do is to buy all the items in shop with minimum expenditure. . source: own problem (i don't have the solution) -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.