Evaluation of Prefix and Postfix expressions using stack

  Рет қаралды 628,210

mycodeschool

mycodeschool

Күн бұрын

See complete series on data structures here:
• Data structures
In this lesson, we have described how we can evaluate Prefix and Postfix expressions efficiently using stack data structure.
See source code here:
gist.github.com/mycodeschool/...
For practice problems and more, visit: www.mycodeschool.com
Like us on Facebook: / mycodeschool
Follow us on twitter: / mycodeschool

Пікірлер: 270
@adityaojha2701
@adityaojha2701 4 жыл бұрын
You helped a lot of students achieving their goals. You deserve huge respect. Indeed.
@HandledToaster2
@HandledToaster2 4 жыл бұрын
Why can't we get teachers like this in college lol. I'm sure you're tired of hearing but thank you so much for all your videos, you explain everything so well.
@amanmishra-vt8hk
@amanmishra-vt8hk 3 жыл бұрын
Because Our Teachers doesn't belongs to Google. LOL
@HandledToaster2
@HandledToaster2 3 жыл бұрын
@@amanmishra-vt8hk I'm sorry, I don't know what you meant to say
@amanmishra-vt8hk
@amanmishra-vt8hk 3 жыл бұрын
@@HandledToaster2 He works at google.
@HandledToaster2
@HandledToaster2 3 жыл бұрын
@@amanmishra-vt8hk oooh I didn't know that! Makes sense.
@hmm7458
@hmm7458 2 жыл бұрын
@@HandledToaster2 this channel used to run by two individuals unfortunately one passed away in a tragic car accident (Indian roads you know) and other just stop will to continue the channel so he just go to work for google
@thecodinghustle1006
@thecodinghustle1006 5 жыл бұрын
give this man an oscar!
@arvindpanchal2721
@arvindpanchal2721 3 жыл бұрын
Isn't oscar is for entertainment industry he is teaching us not entertaining, doing much greater work than entertainment
@siddhartharaja9413
@siddhartharaja9413 3 жыл бұрын
@@arvindpanchal2721 :-bhawnao ko samjho!☺️☺️
@danhle7999
@danhle7999 3 жыл бұрын
@@arvindpanchal2721 then give him a Nobel for Education XD
@hamzaashoaib4644
@hamzaashoaib4644 3 жыл бұрын
Done
@mohitpandey4655
@mohitpandey4655 Жыл бұрын
He is not alive 😭
@rajanand7047
@rajanand7047 8 жыл бұрын
sir i want to hug you.i watched this video and now i am certain that i will perform better in my exam
@AV-yz2cf
@AV-yz2cf 6 жыл бұрын
xD but really. He's got the best lectures of DS with crystal clear explanations.
@miw879
@miw879 5 жыл бұрын
holy
@jayant9151
@jayant9151 5 жыл бұрын
@NOTyoutuber no u
@rahulsharma-fk8ly
@rahulsharma-fk8ly 4 жыл бұрын
gay.
@ashokgupta3105
@ashokgupta3105 4 жыл бұрын
Great work sir
@mycodeschool
@mycodeschool 10 жыл бұрын
@Maha- You can check the description for link to source code. Pasting it here too: gist.github.com/mycodeschool/7702441
@pgamudha
@pgamudha 9 жыл бұрын
mycodeschool it would be better if you post the prefix evaluation source code too sir!!
@luxamateuramvs6800
@luxamateuramvs6800 7 жыл бұрын
dude this is the best video i've ever watched, i totally understood everything, you are really good at teaching.
@chirag_soni_07
@chirag_soni_07 3 жыл бұрын
alright, please add one more thank you to your list. And sir i can't express what kind of respect you owe in every students heart.
@bitethebyte
@bitethebyte 2 жыл бұрын
You are awesome sir, You taught me the whole postfix and prefix concept in just 14 minutes including algorithm. Thank you sir
@ryanyoung2583
@ryanyoung2583 4 жыл бұрын
This is so well done. Thank you so much for creating these videos.
@dragonore2009
@dragonore2009 7 жыл бұрын
You saved me again, I have exam coming up where I have to evaluate these.
@ahmedsoliman4015
@ahmedsoliman4015 6 жыл бұрын
Thank you! an awesomely detailed explanation, and the visualization was very informative too!
@Camatio
@Camatio 9 жыл бұрын
This was very helpful. You have my thanks, good sir.
@rishabh8808
@rishabh8808 3 жыл бұрын
You are an amazing teacher. Keep up the amazing work!
@arihantjammar8888
@arihantjammar8888 4 жыл бұрын
Sir your teaching speed is as perfect as it can be.
@ajaychinni3148
@ajaychinni3148 4 жыл бұрын
Even after 7 years he has the short and best video on this topic
@AbhishekPandey-yl3bp
@AbhishekPandey-yl3bp 3 жыл бұрын
You gave strength to my self taught programming journey
@gargrishab
@gargrishab 7 жыл бұрын
thank you sir for such a wonderful ds experience i am seriously obliged thanks
@dylanwatkins1158
@dylanwatkins1158 4 жыл бұрын
awesome ! so clear and understanding, thank you so much! the book for computer architecture just makes no sense. your videos are getting me through this class !
@bhagyashreekakwani9508
@bhagyashreekakwani9508 2 жыл бұрын
Your videos help a lot in building the logic !! Thanks a lot!!
@peterwan小P
@peterwan小P 2 жыл бұрын
OMG thank you so much! you explained it much better than my college teacher! Thanks for sharing this valuable information with us for free! thanks a lot!
@whacoder725
@whacoder725 Жыл бұрын
Where u study
@theneonlotus
@theneonlotus 7 жыл бұрын
great video, very clear description of pre and post fix. found it very useful
@biswendrajonchhen124
@biswendrajonchhen124 3 жыл бұрын
This is a very crystal clear explanation. Thank you for the video sir.
@AnilSingh-rg2eq
@AnilSingh-rg2eq 8 жыл бұрын
sweet and simple...u make concepts looks so simple..Thanks a lot :)
@imsunilvaghela
@imsunilvaghela 5 жыл бұрын
Hi, Your explanation skills are way greater than any of the youtuber with data-structure videos. I recommend your channel to each of my colleagues whose base seem unclear in data-structures. You have did a great job. I have one query in this lesson. How can we convert an infix expression to pre/postfix expression, which contains an unary operator in it? Please edit your video with this content or please make a separate video for this. Thanks in advance.
@laxmandora8404
@laxmandora8404 2 жыл бұрын
What a voice you got!!What an exaplanation skillsyou got!! Loved it
@Juanbaez_
@Juanbaez_ 4 жыл бұрын
Sir, you are the best. If you thought in a University, I would totally go there.
@buddhiniwalakuluarachchi8281
@buddhiniwalakuluarachchi8281 5 жыл бұрын
thank sir.. this is best video for post-fix which i met
@HeyThereGuy
@HeyThereGuy 4 жыл бұрын
Beautiful tutorial. Very good English. You saved me so much time.
@bahar2207
@bahar2207 6 ай бұрын
Saved my semester. Thanks
@amanmalhotra724
@amanmalhotra724 9 жыл бұрын
fab u all did a fab job awesome explanations this has become one of my fav site and videos thanks and keep it up u guys
@yogieanugrah3865
@yogieanugrah3865 8 жыл бұрын
Thanks! you helped me get my homework done. :)
@earthisadinosaur2338
@earthisadinosaur2338 Жыл бұрын
truly a godly video my dude
@moazelsawaf2000
@moazelsawaf2000 4 жыл бұрын
Really thanks a lot sir
@ericnelsonelem5241
@ericnelsonelem5241 5 жыл бұрын
Very illustrative. Thank you!
@jangandilogout8653
@jangandilogout8653 6 жыл бұрын
Big thanks sir. Very helpful for my exam 😍
@mithileshpandit1071
@mithileshpandit1071 4 жыл бұрын
too OP man... You are the best teacher on the planet
@user-bg1lb2em5z
@user-bg1lb2em5z Жыл бұрын
Best version of explanation
@redmood1097
@redmood1097 10 жыл бұрын
Thank you very much it was very helpful .
@sameerahmed5078
@sameerahmed5078 4 жыл бұрын
I heard he is no more, but he left such good videos, he lives with us as long as these videos help people like us.
@avinashmaurya3625
@avinashmaurya3625 3 жыл бұрын
He is alive. His partner and cofounder of mycodeschool is no more. You can google for "humblefool"
@yashmehan3944
@yashmehan3944 4 жыл бұрын
very well explained, thank you very much!
@lagend0066
@lagend0066 7 жыл бұрын
thanks a lot for so much easy method .....GOD bless you man
@kumarpriyansh4238
@kumarpriyansh4238 4 жыл бұрын
awesome. Very clear explanation sir.Understood it totally
@culturapoliticaycomputador9999
@culturapoliticaycomputador9999 3 жыл бұрын
Amazing, thank you so much, for this kind of video. God bless you sir.
@DarkLordAli95
@DarkLordAli95 8 жыл бұрын
thank you so much kumar.
@narmadapasumarthi9190
@narmadapasumarthi9190 8 жыл бұрын
Really excellent explanation. Thank you very much..
@nabilaaziz3446
@nabilaaziz3446 8 жыл бұрын
Good job!! Great explanation. thanks :)
@jameslussier3143
@jameslussier3143 10 жыл бұрын
this was very helpful, thanks a lot
@tanishkaachaturvedi2173
@tanishkaachaturvedi2173 2 жыл бұрын
best video on the internet
@vengtCent
@vengtCent 5 жыл бұрын
Great explanation!
@unnati___
@unnati___ Жыл бұрын
GREAT WORK BRO!!
@AvinashKumar-pb2op
@AvinashKumar-pb2op 2 жыл бұрын
Awesome explanation ❤️. Thank you sir 🤩🤩✨.
@himanshugupte5543
@himanshugupte5543 8 жыл бұрын
You guys are awesome!
@ashutoshsingh419
@ashutoshsingh419 7 жыл бұрын
thanks so much for this explanation
@shaikgousiya2151
@shaikgousiya2151 3 жыл бұрын
You are a good teacher
@shamim-io
@shamim-io 5 жыл бұрын
Thanks.. Helped me a lot!!
@mohitdaga2356
@mohitdaga2356 6 жыл бұрын
You were a genius,no wonder!
@harshmairh495
@harshmairh495 10 жыл бұрын
thank u for this amazing video. u r doing a great job!!
@TechnoForbes
@TechnoForbes 8 жыл бұрын
Awesome Explanation .. Thanks a Lot :)
@mato4430
@mato4430 2 жыл бұрын
You are absolutely genius
@eldadkanawa6527
@eldadkanawa6527 3 жыл бұрын
Nice Explanation, Thanks a lot
@dearvivekkumar
@dearvivekkumar 10 жыл бұрын
Great explanation as always
@rztutul8824
@rztutul8824 7 жыл бұрын
just awesome explanation ....Tnx
@PiyushYadav-hf1ec
@PiyushYadav-hf1ec 3 жыл бұрын
Great Explanation👍🏻👍🏻👍🏻👍🏻
@juliovalerio4742
@juliovalerio4742 3 жыл бұрын
super clear thank you!
@BladeAndrade
@BladeAndrade 6 жыл бұрын
why at the subtraction you place 26 as operand 1 instead of 9? isn't supposed to pop the topmost elements of the stack? 9 is the topmost and must pop out first then 26 so you will have 9-26, I'm confused.
@aliesapour79
@aliesapour79 4 жыл бұрын
Thank you so much for your video
@MegaBdboy
@MegaBdboy 7 жыл бұрын
What code should i write to evaluate the expression from right ?
@Klish47
@Klish47 8 жыл бұрын
amazing..thanku sooo muchh... understood like never before
@AmrendraKumar-ko8yf
@AmrendraKumar-ko8yf 7 жыл бұрын
yeah ..absolutely So, what r u doing these days . job or studying
@shivanshmathur403
@shivanshmathur403 4 жыл бұрын
@@AmrendraKumar-ko8yf are chacha......kaahe itna...thoda sabr karo
@5thbatman
@5thbatman 5 жыл бұрын
great explanation...
@andreasan1783
@andreasan1783 Жыл бұрын
thanks, very helpful
@btsarmyonly5774
@btsarmyonly5774 3 жыл бұрын
Good explanation sir... Thank you so muchhh
@taimoorsk
@taimoorsk 3 жыл бұрын
Great teacher 😍😍
@tune_into_gaming
@tune_into_gaming 7 жыл бұрын
best explanation...
@AndreKhan716
@AndreKhan716 7 жыл бұрын
Well done!
@mairaabid4538
@mairaabid4538 7 жыл бұрын
if statement is that ( a=b=x=y=0) so what we do in postfix and prefix?
@dragansmoljan7917
@dragansmoljan7917 8 жыл бұрын
what if i want to write an expression without spaces or comas? 2+3*4-5? i get a error, i dont know why
@ankitjangid1
@ankitjangid1 8 жыл бұрын
Sir can you please tell how to convert complex expressions into postfix, for ex :- in my book a question is given i.e A*(B+D)/E-F-(G+H/K) and (A+ B ^ D)/(E-F)+G (^ IS NOT POWER). Please help!!
@odefeoberabor7597
@odefeoberabor7597 8 жыл бұрын
GREAT VIDEO !!
@mansitiwari4893
@mansitiwari4893 9 жыл бұрын
in the pseudo code, why do we subtract a '0' from expression[i] while trying to get the value of the numerical digits? line 64.
@MANISHSHARMA-we2ye
@MANISHSHARMA-we2ye 7 жыл бұрын
lecture is awesome
@mahesh-ve2bp
@mahesh-ve2bp 5 жыл бұрын
There is no words to say Mind blowing explanation
@shantanumaitra8192
@shantanumaitra8192 5 жыл бұрын
Best explanation🤗🤗🤗🤗😘
@donutsandunicorns
@donutsandunicorns 4 жыл бұрын
you are a legend!
@shashankhegde6948
@shashankhegde6948 9 жыл бұрын
It is really good.
@tree78254
@tree78254 8 жыл бұрын
In evaluation of prefix exp, atlast... If d operator comes, u hav two pop two elements...n here 2nd element is the 2nd operand.. So d final ans should be like -17 right???
@t.avinashreddy549
@t.avinashreddy549 5 жыл бұрын
OMG,,, ****** Tqs broo 👏👌👌👌 👌👌
@thorunitha7755
@thorunitha7755 6 жыл бұрын
Great sir!!
@chinmaykulkarni3817
@chinmaykulkarni3817 9 жыл бұрын
Nicely done
@thatoneuser8600
@thatoneuser8600 3 жыл бұрын
10:48 shouldn't it be 9 - 26 which would be -17? I don't understand which operand is the leader when it comes to subtraction.
@gmunni17
@gmunni17 7 жыл бұрын
for the prefix example, could you not write it as: - 9 + * 5 4 * 2 3 this gives me the same final answer of 17
@tune_into_gaming
@tune_into_gaming 7 жыл бұрын
thank you very much ..
@user-bx1or2rr6e
@user-bx1or2rr6e 7 жыл бұрын
thank you so much.
@vijayachaduvula4090
@vijayachaduvula4090 6 жыл бұрын
awesome sir..
@sricharankowlali3853
@sricharankowlali3853 8 жыл бұрын
what if value of operand matches with ASCII value of operator or its value crosses 255.can anyone explain..
@htnguvon8693
@htnguvon8693 8 жыл бұрын
thank you very much
@taefnadim
@taefnadim 3 жыл бұрын
thank you so much
@ankitajain4194
@ankitajain4194 6 жыл бұрын
It will be really good if you can explain Time and space complexity too with your videos.
@TheACCmy
@TheACCmy 8 жыл бұрын
great! thank you
@Izuall90
@Izuall90 7 жыл бұрын
I understand now thanks :)
@SaumyaSharma007
@SaumyaSharma007 3 жыл бұрын
Awesome 🔥🌟🌟🌟🌟🌟
Infix to Postfix using stack
18:20
mycodeschool
Рет қаралды 747 М.
Check for balanced parentheses using stack
14:13
mycodeschool
Рет қаралды 471 М.
IQ Level: 10000
00:10
Younes Zarou
Рет қаралды 6 МЛН
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 36 МЛН
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 17 МЛН
How to Evaluate Prefix Expression without Stack || Solved Example
5:57
3.4 Infix Prefix and Postfix expressions | Data Structures Tutorials
14:14
Jenny's Lectures CS IT
Рет қаралды 969 М.
Application of Stacks (Infix to Postfix) - Part 1
10:33
Neso Academy
Рет қаралды 143 М.
Infix, Prefix and Postfix Expressions
26:54
CodeWithHarry
Рет қаралды 540 М.
DSA18c - Arithmetic expression evaluation using stack
6:41
3.8 Infix to Prefix using Stack | Data Structures Tutorials
24:05
Jenny's Lectures CS IT
Рет қаралды 890 М.
Oh, wait, actually the best Wordle opener is not “crane”…
10:53
IQ Level: 10000
00:10
Younes Zarou
Рет қаралды 6 МЛН