9:31 //Ninja Technique to write empty() function... bool empty() { return front == -1 || front > back; }
thank god didi continued from here
Didi is so busy in shifting from apni kaksha to apna college that in the intro she said "welcome to apni kaksha" instead of apna college. Apart from that you are a great teacher
Are yaar aache se samaj aaya hame 😌 apka dhanyavaad ☺
This code is wrong at soo many levels, the most prominent one being, like here we have fixed length queue of 20, now in main function try to enqueue 15 times, dequeue 10 times, and then again try to enqueue 10 times, then you will understand that even when the queue seems empty it will output queue is full. Basically the dequeue functions is wrong, it should be as following - void dequeue(){ if (front==-1 || front>back) { cout << "Queue is already empty" << endl; return; } for (int i = front; i < back; i++) { arr[i] = arr[i + 1]; } back--; // if queue becomes empty if(front>back){ front = -1; back=-1; } } so that when you dequeue, it actually empties the queue for the dequeued values, and when all the enqueued values are dequeued, it resets front and back to -1. hope It helps, i had to spend hours to find the problem and debug it for all the possible testcases.
In pop operation first we have to reset the values of front and rear to -1.After that we have to increment the front otherwise the code will not work perfectly. See this int pop() { int data; //check empty or not if (empty()) {cout << " empty" << endl;} else {data=arr[front];} if (front >= rear)//reset values back to -1 then increment the front { front = -1; rear = -1; } else { front++; } return data; }
Ma'am don't know how to thank you ,but Ma'am Really Thank You, literally Aaj tak jo cheeg samajh nahi paaya tha wo bhi aapke samjhane se samajh gaya,Dhanyawad Maam Aap Aise hi padhati raho,hum padhte rahe aur jaldi jaldi cheezo ko seekh ke aage badhte rahe Ma"am
Great way of conveying. One recomendation is that if you replace mic for recording audio then it would be much better because there is a lot of distortion in your mic
11:41 My man got popcorns even before getting the tickets for the movie XD
Mam mic issue is super annoying. Please take care of that next time. Else video is very nice.
Didi said '' welcome to apni kaksha"..... Anybody noticed?
Speed of Light ⚡⚡
Apni Kaksha ....
0:01 Didi apni kaksha nahi, apna college! 🤨🧐
I appreciate, ...really helpful.
Thanks didid
Ma'am u r tooo gud... Tq .... 🙌🙌🥰🥰mata rani kre ap Bss aise hi pdate rho.
This is very helpful video❤️❤️❤️
A random girl named Neha after listening her name again and again on this course be like: "Maine kya bigaada tha aapka"
@studytoon4364