Evaluate the following prefix expression " ++ 26 + - 1324"
Answer Posted / pallab datta
One operator is missing in this expression. There are six operands ( 2, 6, 1, 3, 2, 4 ) and four operators ( + , + , + , - ). The number of operators must be exactly 1 less than the number of operands to be a proper expression. Here the number of operator is 2 less than the number of operands. Hence evaluation of this expression is not possible.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the minimum number of queues needed when implementing a priority queue?
Is a list an array?
What is pivot in quicksort?
Check if duplicates exist in an array of N which has range 1 to N.
How will you represent a linked list in a graphical view?
What stack means?
What is immutablelist?
List the data structures which are used in rdbms.
What are different types of sorting algorithms?
Can we add duplicate keys in a hashmap? What will happen if we attempt to add duplicate values?
What is complete binary tree in data structure?
Differentiate between list and map.
Is quicksort divide and conquer?
Which is the best book for data structures and algorithms?
Explain linked list in short.