JOIN
 Select a Forum     Round Tables New Member Discussions News Discussions Algorithm Matches Marathon Matches NASA Tournament Lab TopCoder Cookbook High School Matches Sponsor Discussions Development Forums Design Forums Search | Watch Thread  |  My Post History  |  My Watches  |  User Settings View: Flat (newest first)  | Threaded  | Tree Previous Thread  |  Next Thread Forums TopCoder Cookbook Algorithm Competitions - Rewriting Phase A first draft of the recipe
 A first draft of the recipe | Reply
 Re: A first draft of the recipe (response to post by Dumitru) | Reply There is a bug in the line```numCoins = numCoins[i - Coins[c]] + 1; ```I guess it should be```numCoins[i] = numCoins[i - Coins[c]] + 1; ```
 Re: A first draft of the recipe (response to post by anastasov.bg) | Reply Hello,HiThis is an important question regarding operators and operands. I think we should use dynamic programming approach.We have n operands and m operators. For example:operands = {a,b,c,d}operators = {*, -, +, /}We must put operators between operands and create all of the possibility permutations.F1 = a+b+c+dF2 = a+b+c-dF2 = a+b-c-d....Fi = a*b+c/d;I could not implement the program.Thank you very much.
 Forums TopCoder Cookbook Algorithm Competitions - Rewriting Phase A first draft of the recipe Previous Thread  |  Next Thread