Write a program to evaluate a mathematical expression in postfix notation (e.g., 5 1 2 + 4 * + 3 -).
HardProblem Statement
Write a program to evaluate a mathematical expression in postfix notation (e.g., 5 1 2 + 4 * + 3 -).
Sample Input
Expression: "5 1 2 + 4 * + 3 -"
Sample Output
Result: 14
Limits
Time: 2s · Memory: 256 MB