[algogeeks] Re: Get Target

2013-04-04 Thread Don
I meant postfix, of course. Don On Apr 4, 10:32 am, Don wrote: > Use a backtracking search to build a prefix expression. If there are > two more operands than operators in the expression, the next item > could be either an operand or an operator. Otherwise, it must be an > operand. > > In very lo

[algogeeks] Re: Get Target

2013-04-04 Thread Don
Use a backtracking search to build a prefix expression. If there are two more operands than operators in the expression, the next item could be either an operand or an operator. Otherwise, it must be an operand. In very loose pseudocode: search(int target, list operands, stack opStack, string exp