Reverse Polish Notation Using Stacks

  Рет қаралды 29,296

Erb Computer Science

Erb Computer Science

Күн бұрын

Пікірлер: 23
@zahidmalik-ramzan6415
@zahidmalik-ramzan6415 4 жыл бұрын
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?
@erbcomputerscience
@erbcomputerscience 4 жыл бұрын
Yes that is correct. Thank you for finding this error.
@yalmazkhan4773
@yalmazkhan4773 3 жыл бұрын
you are an excellent teacher...
@anonymousvevo8697
@anonymousvevo8697 3 жыл бұрын
12:57 , the minus has been removed by mistake , i guess
@aarohansharma4551
@aarohansharma4551 2 жыл бұрын
This was very helpful. Thank you very much for the clear explanation!
@erbcomputerscience
@erbcomputerscience 2 жыл бұрын
Glad it was helpful!
@Huge_jass
@Huge_jass 6 ай бұрын
it seems that there is small error in example 3. There supposed to be two '-'. 63*45 - - 2+
@watashiwabotadesu3780
@watashiwabotadesu3780 8 ай бұрын
that's very helpful thank you , may allah guide you to the right path
@erbcomputerscience
@erbcomputerscience 8 ай бұрын
Glad it was helpful.
@atrsarst7158
@atrsarst7158 2 жыл бұрын
I love your positivity thank you!
@jamesliu8548
@jamesliu8548 4 ай бұрын
A minus sign got inadvertently erased at Example 3. It should be 6 3 * 4 5 - - 2 + (two minuses instead of one).
@dikemahoko8346
@dikemahoko8346 Жыл бұрын
what happened to the string @ 12:56 I think a minus sign disappeared?
@TanvirMahmudKhan
@TanvirMahmudKhan 4 жыл бұрын
Great explanation....
@lingsun4492
@lingsun4492 2 жыл бұрын
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
@pavelxbushmakin7252 Жыл бұрын
Unary minus is a part of the number. 1 -11 -
@johnpaulpineda9821
@johnpaulpineda9821 2 жыл бұрын
Very Good Explanation!
@hritikkumar5539
@hritikkumar5539 7 ай бұрын
this was very helpful TY
@erbcomputerscience
@erbcomputerscience 7 ай бұрын
Glad you found it helpful!
@undefinedengineer8794
@undefinedengineer8794 3 жыл бұрын
supercool! thank you!
@MdMasum-si8ib
@MdMasum-si8ib 3 жыл бұрын
Example 3 wrong may be Missing one minus
@baxtables
@baxtables 3 жыл бұрын
13:37
@anupmerwani9207
@anupmerwani9207 3 жыл бұрын
bro try getting a better mic, when u say the letter p or b it looks like you are spitting into the mic
@lovro_ribic
@lovro_ribic 7 ай бұрын
can I buy you a new mic?
Solve any Star Pattern program in Python
18:44
Simply Coding
Рет қаралды 956 М.
MATHS PIZZA 4
7:44
MATHEMATICS MEAL 1
Рет қаралды 1
Bike Vs Tricycle Fast Challenge
00:43
Russo
Рет қаралды 79 МЛН
💩Поу и Поулина ☠️МОЧАТ 😖Хмурых Тварей?!
00:34
Ной Анимация
Рет қаралды 1,7 МЛН
Reverse Polish Notation examples RPN
38:53
Dr. Abdelrahman
Рет қаралды 1 М.
Levy Wins with a Brilliant Scandinavian Defense
9:07
Gotham Games
Рет қаралды 22 М.
Converting from Infix to Reverse Polish Notation
4:41
William Grey
Рет қаралды 192
Reverse Polish Notation and The Stack - Computerphile
13:32
Computerphile
Рет қаралды 305 М.
5- شرح الـ Infix, Prefix, Postfix Expressions والتحويل بينهم !
19:52
محمود سامي Hard-Code l
Рет қаралды 124 М.