Postfix Expression Evaluation | C++ Placement Course | Lecture 23.6

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024
  • Complete C++ Placement Course (Data Structures+Algorithm) : • C++ Full Course | C++...
    Telegram: t.me/apnikaksh...
    Instagram: / dhattarwalaman
    Notes of this Lecture:

ความคิดเห็น • 78

  • @Arceus948
    @Arceus948 3 ปีที่แล้ว +48

    Mam where r notes from last few lectures???? 😒😒😞😞🥺🥺😭😭

  • @AmanSingh-rz1rj
    @AmanSingh-rz1rj 3 ปีที่แล้ว +4

    I am waiting this video really helpful thnkk bhaiya

  • @DineshSharma-pp3ox
    @DineshSharma-pp3ox 3 ปีที่แล้ว +10

    Excellent explanation and animations thanks for free of cost for the premium course
    Thanks a lot from❤️

  • @nishantmittal1506
    @nishantmittal1506 3 ปีที่แล้ว +13

    I guess there should be change i.e. in subtraction and division there should be operand2-operand1 and operand2/operand1 respectively.

    • @ezydebug
      @ezydebug 3 หลายเดือนก่อน

      no bro

  • @sameergupta150
    @sameergupta150 3 ปีที่แล้ว +3

    In case the evaluation should be op2 operand op1

  • @DJ-pz9re
    @DJ-pz9re 3 ปีที่แล้ว +7

    Bhaiya please upload a video regarding college projects.

    • @j_ourney25
      @j_ourney25 2 ปีที่แล้ว

      Ha bhaiya we need that one

  • @neelshah1481
    @neelshah1481 2 ปีที่แล้ว +4

    Hey there ,
    I have one doubt in this topic, if some value have 2 digit value then ?

  • @jatanverma984
    @jatanverma984 2 ปีที่แล้ว +5

    so this video is short before the video of PREFIX evaluation😊😉

  • @shahabz24
    @shahabz24 9 หลายเดือนก่อน

    it was bit difficult in start. But now I am happy after doing all that.

  • @laraiblatif3568
    @laraiblatif3568 ปีที่แล้ว +3

    thanks for explaining this part "st.push(s[i]-'0');" I were confused in previous video about this.

  • @aditya81154
    @aditya81154 3 ปีที่แล้ว +14

    I hope you will continue to this series along with competitive coding

  • @Rehulzretouch
    @Rehulzretouch 3 ปีที่แล้ว +12

    Mujhe laga aman bhaiya premium toh nahi kr rahe corse ko😬;😂😂

  • @ankitshrestha6481
    @ankitshrestha6481 3 ปีที่แล้ว +1

    this code only work for single digit number like 3+4 = postfix is 34+
    how can we do for two digit number like 34+23 = postfix is 3428+

  • @Chaitanya_6444
    @Chaitanya_6444 3 ปีที่แล้ว +1

    It was great....

  • @dipingrover1970
    @dipingrover1970 11 หลายเดือนก่อน

    thank you so much

  • @saurabhsharma3078
    @saurabhsharma3078 2 ปีที่แล้ว +1

    it fails on 2 digit operand

  • @varunchoudhary8797
    @varunchoudhary8797 3 ปีที่แล้ว +1

    Very nice 👌👍👌👍👍👍👍👍

  • @adityaanand5500
    @adityaanand5500 3 ปีที่แล้ว +2

    Please make vedio on specialization Artificial intelligence and machine learning, this area is different portion of cse, Please make a vedio on it.

    • @rajeeell
      @rajeeell 2 ปีที่แล้ว

      spelling to sikhle pehle pichai ki aulad😂😂

  • @ritikram400
    @ritikram400 3 ปีที่แล้ว +2

    Informative session aman bhaiya

  • @hustlewithVaibhav
    @hustlewithVaibhav 3 ปีที่แล้ว

    Thank you 🙏

  • @vartika7725
    @vartika7725 2 ปีที่แล้ว

    What if string not contains only single digit numbers???

  • @185_harshkoldiya5
    @185_harshkoldiya5 8 หลายเดือนก่อน

    Mam, if i want to two digits number instead of one digit number then ......

  • @devastrator25902
    @devastrator25902 3 ปีที่แล้ว +10

    Additional Challenge: make it for multiple digit numbers (easy to do, but you will learn new stuffs) {Hint: I did it with sstream and stod}

    • @rambabupatidar3092
      @rambabupatidar3092 3 ปีที่แล้ว +1

      We can do that with substr function

    • @pranavverma5291
      @pranavverma5291 3 ปีที่แล้ว

      an array of strings can be used to do that

    • @shahabz24
      @shahabz24 9 หลายเดือนก่อน

      I Also done just we have to push additional character while we are converting infix to post and after that we use that to handle multiple digits. You also do this for int and float data type.

  • @aku_11_11
    @aku_11_11 3 ปีที่แล้ว

    U r awesome di

  • @palashagrawal2343
    @palashagrawal2343 3 ปีที่แล้ว

    this code will not work when a no. has 2 or more digits like 467*2+3-6/
    first operation should be 46*7 but code will take 6*7

    • @gauravupreti9340
      @gauravupreti9340 3 ปีที่แล้ว +3

      How compiler know that 467 is 46, 7 not 4, 67, you have to include blank spaces, didi already mentions that this code is for single digit integers.
      if you want for any no of digits, you can try this:
      #include
      #include
      #include
      using namespace std;
      int PostfixSolver(string str);
      int main()
      {
      string str;
      getline(cin, str);
      cout

  • @novel-2i
    @novel-2i 3 ปีที่แล้ว +1

    sir , I pass class 12th so I take this course

  • @tanyagupta4247
    @tanyagupta4247 3 ปีที่แล้ว +2

    I didn't understood this thing like you are storing value in op2 and then op1 so uh got 25 but when I stored value in op1 and then op2 I got value 7 it means there is some concept for storing values please explain.

    • @prakhargupta5410
      @prakhargupta5410 3 ปีที่แล้ว +2

      I think the problem will be with division op1/op2 and op2/op2 will give different values same goes with exponential operation

    • @gauravupreti9340
      @gauravupreti9340 3 ปีที่แล้ว +2

      Assume you are dealing with 2 3 - then first you push 2 in stack and then 3, so now when you pop 3 will come first, then 2, if you are doing operation as op1 - op2 then op1 should be 2, so first we store the top value of stack in op2 then pop this value out, then store in op1.

  • @anubhavgoyal2458
    @anubhavgoyal2458 3 ปีที่แล้ว

    Didi ka teaching style bhut accha h 🥰🥰🥰🥰

  • @kirolloseisa
    @kirolloseisa 2 ปีที่แล้ว

    Please add caption 🙏 🙂

  • @mr.jyotiranjankalta8098
    @mr.jyotiranjankalta8098 3 ปีที่แล้ว +2

    any one here continue this series now????

  • @TheEnd-cs6pb
    @TheEnd-cs6pb 3 ปีที่แล้ว

    website development course kab daloga

  • @harshvardhanraghav9481
    @harshvardhanraghav9481 3 ปีที่แล้ว

    Mam notes are not available 😕

  • @fanframeorder4089
    @fanframeorder4089 หลายเดือนก่อน

    notes kha hai

  • @nishchayshakya
    @nishchayshakya 3 ปีที่แล้ว

    mam please provide notes

  • @Anythiny
    @Anythiny 3 ปีที่แล้ว +2

    Mam thoda slow

  • @tulshikumar7394
    @tulshikumar7394 3 ปีที่แล้ว

    34 video ke wad pdf nhi hy

  • @mdnoorzafirmondal7398
    @mdnoorzafirmondal7398 2 ปีที่แล้ว

    Can you evaluate this postfix operation : 2 3 + 11 * /

  • @aadiltansawala9171
    @aadiltansawala9171 3 ปีที่แล้ว +1

    Bhaiya ham 1st sem me hain aur hame c language hi nahi aati to aap please c language ke videos banaiye please

  • @MiscellaneousThings-g4t
    @MiscellaneousThings-g4t ปีที่แล้ว

    3 value ho then ma'am

  • @learningfoundation6601
    @learningfoundation6601 2 ปีที่แล้ว

    Notes daaaldo na 😇😇

  • @manishisaxena2712
    @manishisaxena2712 3 ปีที่แล้ว

    2digit number ke case me kese kaam krega ye

    • @abhinavpj1729
      @abhinavpj1729 3 ปีที่แล้ว

      Iske liye doosra program likhna padega using spaces between operands and operators

  • @janvimyadventures1310
    @janvimyadventures1310 3 ปีที่แล้ว

    Wait wait wait isn't the code taught in the last video for evaluation she is teaching the same code for postfix evaluation.
    I guess the program for postfix evaluation expression is wrong

    • @shreenidhideshpande
      @shreenidhideshpande 3 ปีที่แล้ว

      Ya, I think in the prefix expression evaluation, we should iterate from end( ) to begin( ) of string, and do the same procedure as postfix.

    • @gauravupreti9340
      @gauravupreti9340 3 ปีที่แล้ว +1

      You should pay more attention towards it's dry run.

    • @rishiltrivedi3080
      @rishiltrivedi3080 2 ปีที่แล้ว

      yes bruh its almost same

  • @_just_for_fun_4472
    @_just_for_fun_4472 3 ปีที่แล้ว

    arey did and bol dete kyu itna kasht uthaya hindi ke liye 5:15 pe

  • @nikhilsinghjadon39
    @nikhilsinghjadon39 3 ปีที่แล้ว +2

    If there will be 3 operands initially like “231*+9-“ the answer would be wrong .. because when you will execute, it’ll give 14 as the answer but the correct answer is -4

    • @mukeshmahajan1586
      @mukeshmahajan1586 3 ปีที่แล้ว

      no buddy its giving correct answer i.e. -4....please check your code u must be doing something wrong

    • @amitgaikwad8002
      @amitgaikwad8002 3 ปีที่แล้ว +1

      this code is only for single digits operations

  • @TravelTales-a
    @TravelTales-a ปีที่แล้ว

    you dont explain in detail

  • @PulkitMalhotra
    @PulkitMalhotra 3 ปีที่แล้ว +1

    The wood frog can hold its pee for up to eight months😎

  • @rishabhgupta9439
    @rishabhgupta9439 3 ปีที่แล้ว +1

    Mam, i am getting segmentation fault how to correct it ??, therefore no output is there

    • @Saiyanwarrior-01
      @Saiyanwarrior-01 3 ปีที่แล้ว +1

      you might have some silly mistake in your code......................happens a lot with me. something due to which your program is keep going

  • @FF_MK_ROY46
    @FF_MK_ROY46 3 ปีที่แล้ว +2

    "any college +& school students here "💖😘

  • @HassanHassan-ch8ml
    @HassanHassan-ch8ml 3 ปีที่แล้ว

    Want web development videos????

  • @amanullahsiddique3451
    @amanullahsiddique3451 ปีที่แล้ว

    Thanks a lot