Stack and Infix, Prefix, Postfix Notation
Stack is one of the basic flow of data that can come from an array list or a linked list. Imagine if there was a stack of boxes or plate. The last box or plate will be the first one to be used (LiFo: Last in First out). Just like that analogy, the "Stack" concept have only one place where the data can enter and exit which is the top. We also learned about Infix, Prefix and Postfix which is the shifting of the operators in a certain expression notation and the answer to the question at the meeting was
pref : / + 1 3 ^ * 100 5 30
post: 1 3 + 100 5 * 30 ^ /
pref : / + 1 3 ^ * 100 5 30
post: 1 3 + 100 5 * 30 ^ /
Comments
Post a Comment