The second example : 6 * 3 - (4 - 5) + 2 I feel like you may have missed something there. After closing the parentheses, the addition operator is of equal precedence with the minus operator. So we pop the minus operator and place it on the String while pushing the addition operator on to the Stack. So the end answer should be the following? 6 3 * 4 5 - - 2 + Am I correct?
@erbcomputerscience4 жыл бұрын
Yes that is correct. Thank you for finding this error.
@yalmazkhan47733 жыл бұрын
you are an excellent teacher...
@anonymousvevo86973 жыл бұрын
12:57 , the minus has been removed by mistake , i guess
@aarohansharma45512 жыл бұрын
This was very helpful. Thank you very much for the clear explanation!
@erbcomputerscience2 жыл бұрын
Glad it was helpful!
@Huge_jass6 ай бұрын
it seems that there is small error in example 3. There supposed to be two '-'. 63*45 - - 2+
@watashiwabotadesu37808 ай бұрын
that's very helpful thank you , may allah guide you to the right path
@erbcomputerscience8 ай бұрын
Glad it was helpful.
@atrsarst71582 жыл бұрын
I love your positivity thank you!
@jamesliu85484 ай бұрын
A minus sign got inadvertently erased at Example 3. It should be 6 3 * 4 5 - - 2 + (two minuses instead of one).
@dikemahoko8346 Жыл бұрын
what happened to the string @ 12:56 I think a minus sign disappeared?
@TanvirMahmudKhan4 жыл бұрын
Great explanation....
@lingsun44922 жыл бұрын
That is very helpful!!!! thanks!! I also wondering that is "1-(-11)" valid expression? the converted RPN is "1 11 - - " the expected result is 12, but if we evaluate the converted RPN the result is 10. do you know how can we support this kind of expression?
@pavelxbushmakin7252 Жыл бұрын
Unary minus is a part of the number. 1 -11 -
@johnpaulpineda98212 жыл бұрын
Very Good Explanation!
@hritikkumar55397 ай бұрын
this was very helpful TY
@erbcomputerscience7 ай бұрын
Glad you found it helpful!
@undefinedengineer87943 жыл бұрын
supercool! thank you!
@MdMasum-si8ib3 жыл бұрын
Example 3 wrong may be Missing one minus
@baxtables3 жыл бұрын
13:37
@anupmerwani92073 жыл бұрын
bro try getting a better mic, when u say the letter p or b it looks like you are spitting into the mic