Double Ended Queue - Additions

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

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

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

    @4:17 for the first insertion from the rear, the rear will get incremented two times, inside if where r changes from-1 to 0 and also when we come out of if where rear++

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

    superb job..good explanation and special thanks..

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

    Very nicely explained dear.. great work keep it up.👍💯❤️✨

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

    Thanku mam for your great work towards us

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

    Clear explanation thanks you for this video . please make video on implementation of circular array

  • @Steve-ft8ux
    @Steve-ft8ux 4 ปีที่แล้ว +3

    Hi, Lalitha:
    Thank you for the great explanation.
    What if there is an empty queue, and I call addrear, then I call addfront?
    After, I call addrear, the index of f=0, r=0.
    then, I try to call addfront, because of the index of f=0, I think the program will tell me full can't be add.
    but in fact. the queue is only been used 1 space in the entire queue.
    In this case, how do I fix it? remove the queue[0] to queue[1] ?

    • @prabhuprabhat_bhatia4506
      @prabhuprabhat_bhatia4506 4 ปีที่แล้ว +1

      If you got the answer of your question,please tell me.

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

      Then add to it &&rear== size-1

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

    Very well explained.

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

    your this video and previous video helps me alot

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

    Hey Lalitha, me and my friend are having a problem because we can´t use "int", we have to use an "Item" that i supose we have to create, just asking if it can be done, and if so how? Thanks a lot for this video, it helped big time !!

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

    Excuse me ma'am, I have a couple of doubts as to what the initial values of the rear and front should be; in addfront when you find out that front = -1 then you initialize front and rear with 0 and then you proceed to put the value in arr[0] in it but the next time you call the function value of front would still be 0 and the function will end. thoughts?

    • @rupeshraut994
      @rupeshraut994 4 ปีที่แล้ว +1

      Initialize front = rear = -1 at beginning.

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

    Your code won't work if we add 2 elements from front, then 3 from rear...for resolving this issue, we have to check if front is equal to rear or not, in both functions...if yes, we will flash "queue is full"...and according to this program, we have to declare front as size-1, not -1, otherwise f-- won't give a valid index

  • @mounikavarshini8045
    @mounikavarshini8045 5 ปีที่แล้ว +1

    can u please upload display function for dequeue

  • @meetpatel1011
    @meetpatel1011 4 ปีที่แล้ว +1

    Thank you so much ma'am

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

    ma'am great explanation. Thank you. and greetings from
    Pakistan. hitted subscribe

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

    Mam face reveal plsssss.Your explaination is awesome even my teacher could not match u

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

    Priority queue program plz ma’am

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

    I want ur lecture s now on java programming plzz come back❤️