@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++
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] ?
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 !!
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?
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
@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++
superb job..good explanation and special thanks..
Very nicely explained dear.. great work keep it up.👍💯❤️✨
Thanku mam for your great work towards us
Clear explanation thanks you for this video . please make video on implementation of circular array
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] ?
If you got the answer of your question,please tell me.
Then add to it &&rear== size-1
Very well explained.
your this video and previous video helps me alot
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 !!
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?
Initialize front = rear = -1 at beginning.
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
can u please upload display function for dequeue
Thank you so much ma'am
ma'am great explanation. Thank you. and greetings from
Pakistan. hitted subscribe
Mam face reveal plsssss.Your explaination is awesome even my teacher could not match u
Priority queue program plz ma’am
I want ur lecture s now on java programming plzz come back❤️