Introduction - If you have any usage issues, please Google them yourself
The magic 24 games played four natural numbers randomly generated by the computer players using addition, subtraction processing parentheses, will be composed of 4 numbers the result is equal to 24 four computing formula. In most cases, this problem has a solution, this the " magic" of where. The usual solutions are based on exhaustive method, to solve all possible formulas, then the judge is not 24. The difficulty of the problem is how to generate all of this formula, make the problem even more complicated due to the brackets sake. One approach is to infix expression into postfix expression into postfix expression analysis. Due to the the suffix expression of characteristics, the postfix expression analysis and solving are relatively easy to implement, thus simplifying the problem solving.