What is Queue Data Structure ? | Queue Operations | Data Structure & Algorithms (DSA) | Part - 1

  Рет қаралды 162,592

Simple Snippets

Simple Snippets

5 жыл бұрын

Understand the working of a Queue data structure and all its operations.
Definition : Queue is a linear data structure which operates in a First IN First OUT or Last IN Last OUT.
It is named queue as it behaves like a real-world queue, for example - queue(line) of cars in a single lane, queue of people waiting at food counter etc.
Queue is an abstract data type with a bounded (predefined) capacity.
It is a simple data structure that allows adding and removing elements in a particular order.
The order is FIFO(First IN First OUT) or LILO(Last In Last Out).
Following are the standard operations of Queue DS -
1. Enqueue
2. Dequeue
3. isFull
4. isEmpty
5. count
---------------------------------------------------------------------------------------------
Full DSA playlist - • Introduction to Data S...
Full Article on our official website - simplesnippets.tech/what-is-q...
---------------------------------------------------------------------------------------------
Support Simple Snippets by Donations -
Google Pay UPI ID - tanmaysakpal11@okicici
PayPal - paypal.me/tanmaysakpal11
---------------------------------------------------------------------------------------------
Simple Snippets Official Website -
simplesnippets.tech/
Simple Snippets on Facebook -
/ simplesnippets
Simple Snippets on Instagram -
/ simplesnippets
Simple Snippets on Twitter -
/ simplesnippet
Simple Snippets Google Plus Page -
plus.google.com/+SimpleSnippets
Simple Snippets email ID -
simplesnippetsinfo@gmail.com
For More Technology News, Latest Updates and Blog articles visit our Official Website - simplesnippets.tech/
#queue #queuedatastructure #datastructures #queueds #queueoperations

Пікірлер: 190
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌
@chayanbarman337
@chayanbarman337 2 жыл бұрын
for me this is the Best Data Structure playlist ...in youtube.. easily understandable and the visual representation is too good ...
@Rohit-si5uf
@Rohit-si5uf 4 жыл бұрын
bro i can understand very nicely each and every topic...thank u from my bottom of my heart.
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Most welcome bro. I am very happy to hear this from you. Please share this video with your other friends too 😇👍
@ujjawalsharma8363
@ujjawalsharma8363 3 жыл бұрын
Found this channel today, Your work is truly appreciable brother. 🔥🤘
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Welcome to Simple Snippets Family!
@kabilankabilan8373
@kabilankabilan8373 Ай бұрын
underrated utube channel
@aliza3037
@aliza3037 2 жыл бұрын
the Indian guy helping me out more than my uni teachers, keeping going thanks
@SimpleSnippets
@SimpleSnippets 2 жыл бұрын
Always 🤟😊
@abhaypratap9898
@abhaypratap9898 2 жыл бұрын
Where are you from?👀
@hemanthsai7410
@hemanthsai7410 3 жыл бұрын
best playlist ever. Too much underrated. You deserve more subs
@prakritiagrawal3615
@prakritiagrawal3615 3 жыл бұрын
I was having so much problem as to where will I be able to learn all the DS, but you really made it up very easy, thank you very much sir ..whole heartedly thank you very much
@NikitaSharma-bs4gg
@NikitaSharma-bs4gg 3 жыл бұрын
Your videos are so well presented and so much clarity of concepts - thanks for sharing really amazing
@vidhioswal9188
@vidhioswal9188 3 жыл бұрын
Thank you for explaining it in such a detailed manner!
@conormcgregor578
@conormcgregor578 3 жыл бұрын
bro your videos are short and to the point. Really helpful
@JohnWickXD
@JohnWickXD 2 жыл бұрын
You are the only one who took time to explain it first rather than jumping to code! Thanks alot...Your videos mean so much to us❣
@chetnagreesan8747
@chetnagreesan8747 4 жыл бұрын
I know I'm commenting on almost every video... But dayummmmm..... You outdo yourself everytime!! Thank you very much!!!
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you so much Chetna, this was really a great compliment. Will keep outdoing myself as long as I have such wonderful support from you and our Simple Snippets Family. Please do share the videos with your friends too. Thats the biggest help and support for our channel :-)
@waseemtarar1829
@waseemtarar1829 2 жыл бұрын
amazing bro thanks by heart .now i think i am able to learn DSA
@zainabbohra2915
@zainabbohra2915 3 жыл бұрын
After watching your videos,now i really think ,i will implement it 😎🤩 ,thanks from bottom of my heart
@patelvraj1362
@patelvraj1362 4 жыл бұрын
best in world i watched it before and second time i did't get this type of describe in any other video so keep it up buddy too good
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you so much brother 😁 please share this entire DSA video tutorials with your friends buddy 😊 that will be the biggest help and support ✌️
@patelvraj1362
@patelvraj1362 4 жыл бұрын
@@SimpleSnippets shourly
@anchalpandey2787
@anchalpandey2787 3 жыл бұрын
best channel for c++ programmer
@_AnanyaVerma
@_AnanyaVerma 3 жыл бұрын
It was really helpfull i understood every concept!!!!!
@suyash.01
@suyash.01 3 жыл бұрын
Excellent explanation once again.
@Rana-ny6tr
@Rana-ny6tr 2 жыл бұрын
So easy to understand. Thank you ❤🙏
@crypticwhispers1969
@crypticwhispers1969 2 жыл бұрын
Thanks a lot for providing this amazing content that's also for free.... It means a lot brother..... For the first time in my 2 years of college... I have understood what queue is and how it's actually implemented.... Thanks a lot.
@SimpleSnippets
@SimpleSnippets 2 жыл бұрын
Most welcome buddy. I'm very happy these videos are helping you 🤘 Keep growing 😊
@dishasaini1
@dishasaini1 3 жыл бұрын
Thanks for the amazing explanation
@maheshrayate8322
@maheshrayate8322 3 жыл бұрын
bro this is the best explanation of queue that I have came across
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Hehe thanks Mahesh 🤟 very happy to know this. Please do share the channel with your friends & ask them to join our Subscriber family too😊 that will be the biggest help & support 🤟
@akshahid101
@akshahid101 2 жыл бұрын
Well explained thank you :)
@059ojasvitiwari7
@059ojasvitiwari7 4 жыл бұрын
awsome bro ,keeo it up
@kainatkhan4863
@kainatkhan4863 3 жыл бұрын
Excellent work sir👌🏻👌🏻👌🏻🥰🥰💯💯💯
@kavitajha801
@kavitajha801 3 жыл бұрын
Thanku so much bhaiya
@NatureBD0001
@NatureBD0001 3 жыл бұрын
Thank you brother....
@ArchitStark
@ArchitStark 3 жыл бұрын
You make it so easy bro, I am a non Comp Sci guy and its still so easy for me to get this...thankss!!!
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
That's the best feedback ❤️ glad you liked it. Please do share the videos with your friend too🤟
@prashant_sahu3306
@prashant_sahu3306 3 жыл бұрын
bro thanku so much from the bottom of my heart. now i can sleep well in the class.
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Hahahaha most welcome bro. Sleep tight 😂😴 Just don't get caught 😜
@anchalpandey2787
@anchalpandey2787 3 жыл бұрын
thanks for the video
@fouziyafarheen9918
@fouziyafarheen9918 3 жыл бұрын
Thank you so much for this much clear explanation! 🤩
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Most welcome buddy, do share the video with your friends too ✌️ that's the biggest support you can do for me 😊
@kavanshah5512
@kavanshah5512 4 жыл бұрын
Lol, kaha Naresh it channel ki bookish knowledge and kaha humara bhai sakpaal, love you bhai
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you so much Kavan 🙏
@yeementhvirutkar1794
@yeementhvirutkar1794 4 жыл бұрын
Happy to learn from u.keep doing this for ever😉
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you so much buddy🙏 And yes many more videos will be coming soon ✌
@brandonlind5700
@brandonlind5700 Жыл бұрын
great video
@prithaviraj4317
@prithaviraj4317 3 жыл бұрын
This is the only indian channel where i can relax to watch DS else I go for some foreigners because you know in India there are many channels which are doing same stuff again and again with boaring techniques , but this bro Tanmay came with lit energy with also fab English speaking and awesome techniques i hooked up watching video of stack and now I'm going to do binge watching and binge working for DS practice , peace out and thanks again bro Tanmay 🤟🤟🤟
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Wow thank you so much Pirthavi for such wonderful feedback. Really very glad to know that my DSA videos are helpful. Please so support me by sharing our videos with your friends too 🙏
@prithaviraj4317
@prithaviraj4317 3 жыл бұрын
I have already share this video to my 5-6 friends and they gave me a fab positive reaction , this is the only channel where we get implementation of data structure with c++ language .....
@engineeringwithmehran
@engineeringwithmehran 5 жыл бұрын
Awesome Bro, may you prosper in life
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome my friend 😊 thanks for the support always. I would request you to keep sharing our channel and content with your friends 😊✌️
@umarajmal6216
@umarajmal6216 2 жыл бұрын
Thankyou !!!
@musicalwindow9949
@musicalwindow9949 2 жыл бұрын
superb
@nobita7933
@nobita7933 5 жыл бұрын
The way you explain 😍😍😍....
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Hehe thanks bro ♥️😊 means a lot to me✌️
@networthsw9943
@networthsw9943 3 жыл бұрын
Ah bro first I thought that what he is saying then I see your video again then I understand your oncepts
@whatthepeeps9439
@whatthepeeps9439 3 жыл бұрын
In first time in my life i understood algos so precisely and didnt get bored.thanks for creating this masterpiece bhaya.Seriously you are a legend.....
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Thank you so much buddy. Really happy to hear this. It would mean a lot if you could please share our channel and videos with your friends too ✌
@loukiknaik7228
@loukiknaik7228 4 жыл бұрын
Damn man i searched a lot of videos for dsa and urs is the only one i actually understood.Thank you keep up the good work!
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
That's great to know Loukik, please do Subscribe to our channel as we have a lot tech educational content which you'll surely like. Also please do share our channel and videos with your friends too, that's the biggest help and support you can provide buddy ✌
@kirtanprajapati8464
@kirtanprajapati8464 4 жыл бұрын
bro thankyou so much your teaching style is amazing and i like this thx bro for understanding queue
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
It's my pleasure. Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@kirtanprajapati8464
@kirtanprajapati8464 4 жыл бұрын
@@SimpleSnippets ya bro i have also share with my IT friends
@vaibhav9876
@vaibhav9876 4 жыл бұрын
Dude superb explaination
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thanks bro 🤟 glad you liked it. Please do share the video with your friends too ✌️
@ArunKumar-gx8iv
@ArunKumar-gx8iv 3 жыл бұрын
thank u sir. all concept u covered.
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Thats really great to know buddy🙏 Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@ThatLLMGuy
@ThatLLMGuy 5 жыл бұрын
awesome bro...always with u... :)
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thanks bro 😊👍
@NaRut0_1
@NaRut0_1 3 жыл бұрын
Hey please make a video on STL IF POSSIBLE... love your all videos...
@jatinkapoor7992
@jatinkapoor7992 4 жыл бұрын
damm man you are great and your teaching meathod is also too good please complete this palylist fast bro plaese upload more types of algorithms and hashing one also pleasebro and keep it up
@user-gd6il5zb8l
@user-gd6il5zb8l Жыл бұрын
@SimpleSnippets, sup, a few questions. 1. If the `front` variable can only be equal to `-1` when the queue is empty, then why do you check for `rear`, too, in `isEmpty()`? 2. What is faster: checking for `front < 0` or for `front == -1`? I mean not for C++ specifically, but for popular CPU arches. From what I understand, comparison of two numbers is typically done in the CPU in the ALU. But do compilers make it a moot point because they somehow change the Time Complexity of the comparisons on the higher level so even if on the ALU level it is faster to check for `-lt` (less then) than for equality, the workings of the higher level add other algorithms above it and the total Time Complexity of the underlying algo and of the higher-level algo turns out to be the opposite: that the check for equality is faster, because the higher-level algo is more Time-Complex than the underlying algo, so it grows faster and works slower on large input. Pls correct me if I'm saying bs, I'm still figuring this out. 3. Why don't you put `x = arr[front]` BEFORE the if-else construct in `dequeue()`? I mean at this point (after the check for emptiness) it will execute either way. Thanks for the vid. Just discovered you playlist thanks to your Big-O notation introduction, it was very awesome and I'm still kind of dazed I got it. NOW I HAVE THE POWER TO RULE THE WORLD! P. S. Your vids are very nice, I like how you exaplain things in simple terms, as you would to a friend in the kitchen, and also take care to highlight stuff in different colors, it helps understanding a lot, I kind of categorize the stuff you talk about right away when you use different colors, wish more people would do that, especially in term definitions like you do. And also SPECIAL BIG-PUMPKIN THANKS for the practical examples both in Tech and Real Life, I guess you know just like I do what it's like to live in the world of mostly purely theoretical study materials of any significant depth and be a practically minded person at the same time. You're life saver. This rocks!
@praveshbisaria5303
@praveshbisaria5303 4 жыл бұрын
Bro, you are amazing!!! Please upload videos on dynamic programming as well.
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Sure I will
@AJRobinson
@AJRobinson 10 ай бұрын
Fantastic video! I have one question. After performing out last dequeue operation, the last read value is not cleared out. I added a arr[front] = 0; in my dequeue "else if" so that when I read the last queued item (when front == rear), that value is read, then cleared. Does this track?
@trippics8465
@trippics8465 3 жыл бұрын
You've earned your subscriber.
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Welcome to Simple Snippets family!
@muzammalhussain4887
@muzammalhussain4887 Жыл бұрын
Hi everyone! I think in enQueue( ) operation there should not be an elseif part, instead, you should place an else part, and in that there can be an if and else function. because in the video, arr[rear]=value will be executed rather arr[] is full or not. here is my approach. correct me if I'm wrong. void enQueue(int element) { if (isFull()) { cout
@Matrix-sg1uy
@Matrix-sg1uy Жыл бұрын
looks like yours works too but his's more... readable in a sense. You can more easily tell what his code is saying compared to yours
@SHAJ.T3CH
@SHAJ.T3CH 5 жыл бұрын
awesome bro, go on
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thanks bro ✌️😊 please do share the videos ✌️
@SHAJ.T3CH
@SHAJ.T3CH 5 жыл бұрын
@@SimpleSnippets of course
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thank you so much buddy 😊✌️
@umerkhan8297
@umerkhan8297 3 жыл бұрын
Bro U are life saver subscribed good work man
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Glad I could help. Please share the videos and channel with your friends too. Thats the biggest support you can show for our community.
@umerkhan8297
@umerkhan8297 3 жыл бұрын
Simple Snippets for sure man
@prajwalgowda6206
@prajwalgowda6206 3 жыл бұрын
awesome dude tqsm
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Happy to help😇
@mohamedsufian8360
@mohamedsufian8360 3 жыл бұрын
Make a video series for aptitude and logical reasoning now a days it's very useful for cracking interviews or for competitive exams as well
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
kzbin.info/www/bejne/hYfGoHt-fK-pi80
@johnpaulbancayrin9375
@johnpaulbancayrin9375 3 жыл бұрын
very nice !!! i super i like all your videos
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Thank you so much 😀
@syedabbasbaqri4914
@syedabbasbaqri4914 5 жыл бұрын
Thank you sir
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome buddy 😇 Please share it ✌
@100xdropship
@100xdropship 4 жыл бұрын
Hlw bro your vedios are very useful keep going
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you so much buddy. I am glad to see this response from you. Please do subscribe to this channel & share the videos with your friends too. That will be the biggest help and support for everyone 😇
@ai.201
@ai.201 4 жыл бұрын
On point.
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thats the whole motto of my videos, to be on point 😇✌
@sheetal_s5153
@sheetal_s5153 3 жыл бұрын
Congratulations for 100k in advance 😀
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Thank you so much 😀
@yu-chengchang8453
@yu-chengchang8453 3 жыл бұрын
easy to know. thanks.
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Glad it was helpful!
@techmatein
@techmatein 2 жыл бұрын
At 20:40 wont we make arr[front]=0 ?
@user-sk1zm8zc3j
@user-sk1zm8zc3j Жыл бұрын
الشرح يجنن عراقية مرت من هنا
@fazalkhan4808
@fazalkhan4808 4 жыл бұрын
*Osm Sir..*
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you so much Fazal I am glad to see this response from you. Please do subscribe to this channel & share the videos with your friends too. That will be the biggest help and support for everyone 😇
@fazalkhan4808
@fazalkhan4808 4 жыл бұрын
@@SimpleSnippets ok sir...
@sahilarora7186
@sahilarora7186 4 жыл бұрын
Thanks bro
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Welcome Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@babitadevi3977
@babitadevi3977 3 жыл бұрын
Bhaiya complete roadmap bnao ds algo in C++ Khan se kre on utube.Really need..by a person like u..
@shiroyasha69
@shiroyasha69 2 жыл бұрын
My Saviour
@vivekp6647
@vivekp6647 3 жыл бұрын
Can you tell me what is the time complexity of Enqueue=? Dequeue=? Best case and worst case ☺️
@drunkmadala
@drunkmadala 4 жыл бұрын
Thanks, after hours of mental torture, you saved me!
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Hehe glad to be your saviour 🤟 please do share our videos with your friends too and definitely Subscribe 😁 thats the biggest help & support 🤟
@dobby4445
@dobby4445 4 жыл бұрын
Awesome
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thanks bro 😁 please share the videos with your friends ✌️
@israrqayyum7
@israrqayyum7 8 ай бұрын
@sarthakbharadwaj5576
@sarthakbharadwaj5576 4 жыл бұрын
14:20 isempty should have parenthesis
@AnoopKumar-bk2us
@AnoopKumar-bk2us 3 жыл бұрын
You deserve 100M subscribers. 🙏
@AnoopKumar-bk2us
@AnoopKumar-bk2us 3 жыл бұрын
Please make video on heap
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Thanks Anoop! And yes will cover Heap soon!
@zamard.
@zamard. Жыл бұрын
Please find a solution for that, because I do not understand Hindi, and your explanation is very beautiful. I hope that you will add automatic translation into Arabic in all the course videos as soon as possible, as in the stack lesson.
@vladi7563
@vladi7563 3 жыл бұрын
Legend
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Glad it helped! Keep up the support by sharing the videos with your friends too! 😇
@deepakmishra2336
@deepakmishra2336 4 жыл бұрын
Bhai Pls tree haep hash pr bhi video bana do Pls pls
@sheetal_s5153
@sheetal_s5153 3 жыл бұрын
Please sir read it Sir size of array is n and we dequeue elements from 0 to n-2 and we check isfull(rear==n-1) I thik it return true so is there any way to solve this problem
@sarthakbharadwaj5576
@sarthakbharadwaj5576 4 жыл бұрын
Dude one series on STL plz... It's very confusing for most of us
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Will do in future ✌
@LUCKYSINGH-vz2pd
@LUCKYSINGH-vz2pd 3 жыл бұрын
why we are incrementing front in enqueue operation? like enqueue can be performed by using rear only. right? so why here u had increment front to 0? let it point to -1 only...we will use front in dequeue. so there we should increment the value of front na?
@vasavisadhu5722
@vasavisadhu5722 4 жыл бұрын
Nice
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Most welcome 😊
@daverussell4052
@daverussell4052 3 жыл бұрын
so can i shift all element after the dequeue?
@zamard.
@zamard. Жыл бұрын
Wayne automatic translation of the Arabic language Please find a solution for that, because I do not understand Hindi, and your explanation is very beautiful. I hope that you will add automatic translation into Arabic in all the course videos as soon as possible, as in the stack lesson.
@anjulieingale653
@anjulieingale653 3 жыл бұрын
I am lil confused as why will queue does not require pointer for rear or front .
@AbhishekYadav-vn2xj
@AbhishekYadav-vn2xj 4 жыл бұрын
bro when we do front++ why preceding value gets erased we have only shifted the arrow
@sheetal_s5153
@sheetal_s5153 3 жыл бұрын
Because now front points next index so previous value become garbage
@shaikmohammadnaseer4082
@shaikmohammadnaseer4082 3 жыл бұрын
thank u so much bhai for wrking this great for making us to understand in the best way ever.... i love the way u explain.. i have a small doubt i hope u wll definitely clarify it ... i have done ur oops with c++, datastructures and in progress with java. suggest me what should i proceed with the next course after these to get good job oppurtunities to get settle well. plz bhai.
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Thank you so much and I am very happy to know that you have gained so much knowledge. Start with competitive programming practice now.
@shaikmohammadnaseer4082
@shaikmohammadnaseer4082 3 жыл бұрын
@@SimpleSnippets I think u dint started the play list on competitive programming yet... Only one video is there ryt?
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Yeah that's a long way to go. DSA is left so will complete that first ✌️
@shaikmohammadnaseer4082
@shaikmohammadnaseer4082 3 жыл бұрын
@@SimpleSnippets OK bhai thank u so muchhh... Happy to see ur reply 😍🙈 I wll be waiting fr ur new playlistts
@Itsnotmondayyet
@Itsnotmondayyet 3 жыл бұрын
EARNED A SUB
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Welcome to Simple Snippets fam!
@jobanpreetsingh2370
@jobanpreetsingh2370 3 жыл бұрын
This course is good or as per the level of faang companies???
@little_bee_007
@little_bee_007 2 жыл бұрын
bro suppose the queue size is 4 and we enqueue 4 values and we dequeue 1 value now front var points 1 and rear var points 3 then will it denote queue as full caz rear var = size(arr)-1 ....? but we have 1 free unused space at front
@ruturajghumkar
@ruturajghumkar 2 жыл бұрын
It does make sense
@premanandkadam8355
@premanandkadam8355 2 жыл бұрын
is this by using linked list
@dobby4445
@dobby4445 4 жыл бұрын
Anyone from isc
@PrinceKumar-br7xl
@PrinceKumar-br7xl 2 жыл бұрын
Sir will u give us notes of that
@hnssb7533
@hnssb7533 2 жыл бұрын
Is this course enough for placement????
@ayushverma7179
@ayushverma7179 4 жыл бұрын
I have a doubt... If the queue is full ..and we remove a item from front , after that can't we entre a new value at back (by shifting every object forward )
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
We can if we want to, but standard queue conventionally does not provide facility ✌
@omkardoijad7989
@omkardoijad7989 3 жыл бұрын
@@SimpleSnippets Bro I watched some videos on queue . they shifted every object forward while performing Dequeue operation
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Well the operation is dependent on how you implement. Even their implementation is correct. 😊✌️
@arqamali7564
@arqamali7564 Жыл бұрын
fay = 5
@usamabintahir5285
@usamabintahir5285 3 жыл бұрын
what's the difference b/w learning dsa using struct nd classes?
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Not much
@praveenrathod2631
@praveenrathod2631 11 ай бұрын
pls provide ppts and code. it is necessary for teaching students
@lovelyfishes5118
@lovelyfishes5118 4 жыл бұрын
Does this playlist cover all tha data structures and alogs ?????
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Not yet but soon it will 😇 Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
Open Session in Hindi -(Statistics I)
1:40:55
IIT Madras - B.S. Degree Programme
Рет қаралды 572
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 57 МЛН
Introduction to Circular Queues
10:43
Lalitha Natraj
Рет қаралды 82 М.
4.1 Queue in Data Structure | Introduction to Queue | Data Structures Tutorials
20:19
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 619 М.
every good programmer should know how to code this data structure (its easy)
21:08
Learn Stack data structures in 10 minutes 📚
10:07
Bro Code
Рет қаралды 192 М.