Reverse Polish Notation (RPN) is a mathematical notation where operators follow their operands, and it can be efficiently evaluated using a stack-based approach: iterate through tokens, push numbers onto the stack, and when encountering an operator, pop the required operands, perform the operation, and push the result back; this method naturally handles operator precedence without explicit priority rules.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
Dumbest guy doing leetcode live day 35Added:
Bro, what the [ __ ] I think you're good.
Oh [ __ ] bro.
Still not working.
Let me explain function is prime or not. nums and simple prime function.
Minimum jump. Let steps equals to zero is prime false. Current number will be like first number. Since from any index I you may perform one of the following operation old old AI models.
I used to think like a model work like this like people people might have put some bunch of uh lip there and whenever we send something if it is matching then it will show the output whatever is there element numbers divisible by else.
Okay.
We can do plus one, right? So we did current number plus one and which is like last element. We took the last element again and we're doing step++ here. Why are we doing step plus here again?
Are we doing two double time step?
Okay, leave that last last item. Uh same thing last item is divisible by this happen.
Only thing we're doing is current number plus plus one and again we increment the steps. If it steps is there steps otherwise num length minus one. Since here here we don't have any prime number. So you can only go like zero 1 2. So it's just like three length 1 to three. So just three since there is no teleportation is possible. We move through zero 1 2 3 which is like three.
Zero. Ignore the zero.
So where did I go wrong?
Why are we why am I having like two plus >> current number will current number will be like uh + one and last element uh the last element of the array and last item divisible by current number equals to 0 then this should give me the same output I so This one not doing anything else.
So we only need to fix for this thing.
Why are we getting like only one?
Is this is because of the uh no for loop thing?
I think writing on loop will solve this thing but my conditions can break.
Where where did I make a mistake, man?
How dare you?
Fix.
You can only replace.
You can only fix the answer. Not replace.
Fresh Mario.
What are you?
Yeah, check out is all prime.
Then only you can do uh SC Okay.
Oh god, what the [ __ ] FN. Oh, FN FN. I have seen FN somewhere.
FN.
Where do you use FN?
FN is short for oh PUB is short from the short form for the public.
Is it similar to the Java? Is this type?
What is vector I3?
What language are you using?
house. Okay. This is Oh, immutable. Oh, this is similar to JavaScript shadowing.
You declare the B. Okay, this is similar to the JavaScript.
Basic data type I32 U32 F64 F32 B car for STR we need to do this thing with the I that is integer 32 byt or what is 32 if it has the same loop for loop it is [ __ ] Crazy.
What the [ __ ] is this?
Ownership and borrowing.
You removed my code.
But you are not supposed to return true or false, right?
You are supposed to return the output.
Chinese. Where is Chinese?
You want me to convert to Chinese?
Okay, I got you.
So the number is not defined. The number is not defined. The number is not defined.
Num is not defined. Num is not defined.
You have nums here. You have nums here.
How can you get numb here?
I need water. Water.
Too spicy, man. Too spicy.
I had so many things today.
It's going to [ __ ] my strong.
What is the error?
Oh, okay.
You removed the main function what it had.
Can you copy the hello?
This was missing. This was missing.
What am I?
Oh, where's my code? I don't want to write it again, bro. What the [ __ ] This is wrong. This is wrong. What is this? What is this?
I need some clothes. I need some clothes.
Maybe should I just use a for loop?
If it is prime then we check for last number is divisible by minus one. Then yes++ will happen. Uh uh current number plus one will happen. If not and last element will be like same thing. And if last element is divisible by current element number should I check for current number or like divisible by two only.
Oh no they're checking for the current element. So current number will be like three. So three it is divisible by three. Yes. So three is divisible. 9 is divisible by three. So it is considered let me let me ask for hint are we going in the right direction first should I do with some different where is my G boy okay they fix the issue I made enter don't give me the [ __ ] answer.
All right. Your your prime has bug. Why?
What is nums here? Array or number?
Oh [ __ ] Where did he put that thing?
Will this fix my issue?
Really?
Okay, that was one of you and a mixing value index. What do you mean?
nums of one is supposed to give me the nums of one value. Like what the [ __ ] are you saying, bro?
And uh this is crazy.
So are you saying like if I current number one it will not change my number itself.
[ __ ] Hey.
Uh, I need to know VFS, CFS, EFS. I don't know those things. So, I'm sorry.
Where I use I use all Nah, bro.
This is not working. I guess that guy was right.
But I still had to try my best to do thing.
Pro players have told me already like you can't do without DFS, BFS something.
This guy, where is he? Where is it?
See, this guy told uh no no here. Here you can't solve this problem with your code. This problem in DFS and DP.
I don't have that.
I feel so bad.
But how the hell did this two test cases pass?
All right, I'm back to my back to my normal thing which was the quest since it was we following the path, right?
Did I complete this thing?
Here given an integer array target and integer and you have a non empty. You have a non-MP stack with two following operations. post an integer top of the stack and pop removes the integer on the top of the stack and you also have an string of integer n 0 1.
Use the two stack operations to make number of numbers in stack from bottom equal to target.
If the stream of integer is not empty, pick the next integer from the stream, push it in top of the stack. If stack is not empty, pop the integer at the top of the stack.
If at any moment the elements in stack from bottom to top or equal to target, do not read any home stream do not operational.
[ __ ] you can stop operation.
If there are multiple return any of them so many instructions I have to read again.
They have given a target array 1 2 3 and n is three.
Initially stack is empty. The last element is on top of stack.
A push read one from stream. push it to his app to stream and push it to his integer from the top of the I literally can't understand the question right 80% acceptance simulation simulation got lot The other problem we have Oh [ __ ] So big question.
Here given an array of strings tokens represents the arithmetic expressions in reverse polish name.
Post exploitation is in hardware software where expressions return any integer that represents the value of expression.
Valid operators are plus, minus, star and divide. Each operand.
Each operant plus was given.
Okay.
If plus was given here.
Each oper may be integer or another expression. Division between two integer always truncates towards zero.
There will be not any division by zero.
Input represents the valid arithmetic expressions in regress notation.
Answer all the intermediate calculation represented by that integer.
How will you find this thing?
Consult token.
And let us write in loop and first thing we need to do iteration and only valid operations.
Only valid operators are Stop.
All these operations all the valid operator. Now it's oper may be an integer or another expression.
Let's console out. Console out.
Am I really supposed to use stacking here?
How will you say number push?
[ __ ] According to the board master first priority goes to the package division application addition.
Here it is.
First priority should be given to you. We need to do in reverse order.
What does this polish notation is on brand.
What the [ __ ] Six.
How the [ __ ] I shouldn't be able to do easy problem.
tree.
All those three things are coming.
What is I have the remote.
Shadesh.
from the left and over XY remove the character left the character left this thing. So it should deleting C and three and remain four C and here we don't have any digit.
This is start.
54 we play first.
Yes.
Why?
Why not?
You could have done the S0ing C4 delet that's the reason B That's probably there's nothing here.
I hope I hope I Uh oh, I got it. How much did I get?
What the [ __ ] I didn't do anything, bro.
What is my total 8.4?
[ __ ] Same as last time.
Nah, it got decreased.
[ __ ] How much did I get out of 70? I got 53 out of uh 70.
Oh, in this thing I got so bad.
Why they have to so many marks for me?
Everything.
Okay, got 8. 8.4 CG here. I have I think last time I did better and here I did better. Why the [ __ ] even 16 this mother did everything perfect this is done only one more semester of this let's do this thing to remove the left property Let's set in this. Let us write. Let us write. Let us see. SC first. I'll post this. C 3 4 5 If you this is should be like C and And now still there is save.
How is this working?
Remove all the first digit and process Yeah, something else is empty.
This should at least pass one test case.
Can't I do this? Let's uh let's uh There we don't have anything Okay.
[ __ ] We don't know.
Will this work or not? I think this will work for us. Oops.
Think I made some mistake.
Wrong.
data type.
You don't need to store it at Should it be slash?
Yes, this is what slash This should work.
Stop.
Hey, is not You know, someone CB is Okay.
Wait.
This is the last thing.
Invisible.
I have some There you go.
Hello.
Thank you.
This operation Thank you. Stand there.
If I suffer is what am I even sir?
Okay, this is working.
Let's return this thing.
We didn't select something.
Oh, I want to do this part character.
I wonder how to do this thing.
I can't walk that square Oh, this is how we supposed to start.
What are people n this this thing I use anyone Stop.
But It's not a number.
What's up?
Hey, This one.
Oh, for tracking we use for reversing we can use stack always check length is greater than position.
Why was I not two.
I know.
I know.
valid parentheses string empty.
some history.
Perfect.
Hallelujah.
Amen.
How do you Watch the light.
What happened?
Open it.
Are they?
Stop.
Ready?
Related Videos
Agentforce NOW AMA: Build with React and Salesforce Multi-Framework
SalesforceDevs
490 views•2026-05-28
How agent o11y differs from traditional o11y — Phil Hetzel, Braintrust
aiDotEngineer
450 views•2026-05-28
Re: 🗣️📍theprophedu📍2026 GST 103 CLASS (E-EXAM REVISION)
theprophedu
636 views•2026-06-04
WEB TECHNOLOGIES UNIT-2 | Degree 4th sem BCOM Computers web technologies unit-2 full explanation💯✅
LearnwithSahera
1K views•2026-05-29
More tests are always better? How to use AI to identify tests that bring little value
Alliance4Qualification
335 views•2026-05-29
Search Algorithms Explained in 60 Seconds! 🤖💨
samarthtuliofficial
218 views•2026-06-01
People of Game of Thrones using JavaScript DOM
AltCampus
296 views•2026-05-30
Introduction to Problem Solving Part - 1 | Lecture 1 | Intermediate DSA
ascensionix
107 views•2026-05-29











