A sample question of reverse Polish Notation is 347+* which really means 7 + 4 * 3. A great advantage is that brackets are not required. The result of this question is 33. To retrieve, we can use Nodes creating new nodes that store the values of stack.pop() or push a node off with stack.push(someNode). I hope to finish this code soon.
No comments:
Post a Comment