Difficulty Level : Medium
Submissions : 49
Asked In :
Marks :10
: 0 | : 0
You are given a String in Infix form. You have to evaluate the expression given and print the value of the expression. You can assume that operations are integral i.e (5+7/2) doesn't exist. The operands that exist are (+,-,*,/,()).
A single line containing a string in Infix form.
A single integer containing the value of the expression.
1 + 3 - 5 * 2
-6
Here, we can see that corresponding postfix expression would be 1 3 + 5 2 * -
Resulting value would be -6.
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.