Get Time
Search | Watch Thread  |  My Post History  |  My Watches  |  User Settings
View: Flat  | Threaded  | Tree
Previous Thread  |  Next Thread
operators and operands problem | Reply
I am asking my question. I think this problem is related to Dynamic programming concept.

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+d
F2 = a+b+c-d
F2 = a+b-c-d
Fi = a*b+c/d;

I could not implement the problem.
Is there anyone help me?
Subject Author Date
operators and operands problem sharifzadeh Nov 27, 2012 at 2:28 PM EST
Re: operators and operands problem B.Pham Jan 6, 2013 at 12:36 AM EST