Jack, I don't quite get it when you say:
quote:

I also get another inconsistency with Madruga's test script. His script gives:

In => 3, 3, 7, 7; Out => ( 3 + 3 / 7 ) * 7 = 21 => WRONG!!

Which is clearly incorrect.

Why is that incorrect? If I use integer math, then 3 / 7 = 0, + 3 = 3, * 7 = 21... Have I forgotten something from school?
Surelly that is not the intended result!
You may be induced in error by the "WRONG!" part: it does not mean that the expression is wrong, it only means that that expression does not evaluate to the expected result of 24...

P.S.: I'm still trying to figure out a decent algorithm... When I do, I'll sure as hell post the results here... [Smile]

[ 17. September 2002, 02:08: Message edited by: Fernando Madruga ]
_________________________
Later,   [b]Mad[/b]ruga