SarthakKeshari / Java-Questions-and-Solutions

This repository aims to solve and create new problems from different spheres of coding. A path to help students to get access to solutions and discuss their doubts.
MIT License
46 stars 95 forks source link

Evaluate Reverse Polish Notation #400

Open singhanuj620 opened 2 years ago

singhanuj620 commented 2 years ago

Enter your question -

Evaluate the value of an arithmetic expression in Reverse Polish Notation.

Valid operators are +, -, *, and /. Each operand may be an integer or another expression.

Note that division between two integers should truncate toward zero.

It is guaranteed that the given RPN expression is always valid. That means the expression would always evaluate to a result, and there will not be any division by zero operation.

Enter link to the question(if question belongs to any online platform) -

https://leetcode.com/problems/evaluate-reverse-polish-notation/

Tags for the question(eg - Array, Basic, Stack, etc.) -

Stack

singhanuj620 commented 2 years ago

Kindly assign me this task @SarthakKeshari

SarthakKeshari commented 2 years ago

@singhanuj620, Kindly add your solution to "leetcode" folder. Deadline - 12/10/2021