Тёмный

#13 Queue Implementation using Java Part 1 | EnQueue 

Telusko
Подписаться 2,4 млн
Просмотров 205 тыс.
50% 1

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 68   
@troytaylor108
@troytaylor108 2 года назад
Excellent explanation. I've seen a few but none as good as this. Thank you.
@chinmaydas4053
@chinmaydas4053 6 лет назад
Nice explanation.we want this type of detailed,in-depth and easy data structures,algorithms analysis & design principles complete videos series..many thanks.
@musicalyrico3268
@musicalyrico3268 6 лет назад
I agree
@musicalyrico3268
@musicalyrico3268 6 лет назад
Your are a good teacher. I've seen a lot of tutorialsl about queue BUT this one is way better. THANK YOU SO MUCH SIR
@pranavkapoor6382
@pranavkapoor6382 6 лет назад
enqueue should also have a condition , if rear == 5, throw exception that overflow has occured
@tradermigel4354
@tradermigel4354 6 лет назад
Better than my lecture.. He makes things look easy
@abhiraj6494
@abhiraj6494 6 лет назад
Sir,I am very thankful to you to upload and give this beautiful explanation.
@aayushjoshi4757
@aayushjoshi4757 2 года назад
Please make videos on circular arrays, doubly linked list and all other data structures.
@MrAbbasalrassam
@MrAbbasalrassam 5 лет назад
So helpful and nice explanation. thank you a lot
@masabzesabzim
@masabzesabzim 5 лет назад
You can simply use a linked list which is way cleaner and safe for this implementation.
@gtechgyan6466
@gtechgyan6466 5 лет назад
Sir from where i can learn complete DS in java Anyone can suggest simplest way
@rupeshsharma3912
@rupeshsharma3912 4 года назад
Sir, make a code and plz explain it on circular queues implementation using linked list in java
@digitalnomadg
@digitalnomadg 6 лет назад
these are much more intresting in java to code rather than C language.
@blackatomic1669
@blackatomic1669 5 лет назад
yes, Java is more interesting to code in my opinion.. C is low lever, so it's more difficult to interpret for the user.... closer significance to the machine-level code tho
@clinbriant
@clinbriant Год назад
wow...i like your explanation. continue posting more of the same
@hifzaumar7070
@hifzaumar7070 3 года назад
Sir you r awesome your way of teaching is best l watched many videos but I learned more from this video easily understandable code
@anaskala1196
@anaskala1196 6 лет назад
excellent explained. thanks.
@nikolapetrovic4415
@nikolapetrovic4415 4 года назад
Hahaahah "very famous exception" xDDD
@vishalsuthar7446
@vishalsuthar7446 8 месяцев назад
thank you
@SajanKumar-m3s
@SajanKumar-m3s Месяц назад
I don't get this, you never mentioned the size initially, except when creating the queue like [5], then from where does it start
@NeginAshrafi
@NeginAshrafi Год назад
thank you for the best explanation
@pawandeepsingh1476
@pawandeepsingh1476 3 года назад
I get an error for q.show(); it's highlighted with red underline and won't run!!
@chinmaydas4053
@chinmaydas4053 6 лет назад
And obviously these all implementations in java language is the best ..
@srijansinha6921
@srijansinha6921 6 лет назад
By which programming language can we create Jarvis ? And windows os ? Please tell me You know about jarvis na ?
@georgeem9954
@georgeem9954 Год назад
A Queue is an interface, which means you cannot construct a Queue directly..i am confused, can someone help?
@rohitpawar3261
@rohitpawar3261 2 года назад
sir make video on full ds in java .. thank u
@ravindraprajapati468
@ravindraprajapati468 6 лет назад
#13,14,15 very good explained
@faizzz__
@faizzz__ 6 лет назад
sir, can you teach me how to add/enQueue in the middle position/ or example I want to add in an position every position.
@bhunesh182
@bhunesh182 6 лет назад
sir please make video on doubly linked list
@dinkarinjosh
@dinkarinjosh 4 года назад
The same principle I learnt from him and improved slightly, I suppose, below is the code for the same: public class Queue { private int[] q; private int front,rear,capcity; Queue(){ this.front=0; this.rear=0; this.capcity =2; q = new int[capcity]; } void enqueue(int data){ if(rear==capcity){ capcity = capcity*2; int[] temp = new int[capcity]; System.arraycopy(q,0,temp,0,q.length); q=temp; } q[rear++] = data; } void show(){ for(int i=front;i
@najatoz2287
@najatoz2287 6 лет назад
could any one knows how to enqueue a string from user to check palindrom using queue?
@gnanenderreddy3606
@gnanenderreddy3606 4 года назад
sir why didn't you provide doubly linked list
@sachinbhalla14
@sachinbhalla14 6 лет назад
why we do not use enhanced for loop for printing the element if we use enhanced for loop for printing the element then dequeue method id not working properly
@sp123447
@sp123447 Год назад
why do we have to return data in dequeue() ?
@charmix_963
@charmix_963 3 года назад
dat helped me very much tanks
6 лет назад
rear and size have the same value. it's a waste to have both variables in this case.
@andysinpetrean9126
@andysinpetrean9126 5 лет назад
I was specifically looking for this comment because I thought the same thing.
@parthkumar1033
@parthkumar1033 4 года назад
No suppose u add 4 elements then rear value will be 4 and size is 4 If u remove two elements then front is 2 and size is 2 Now size and rear are not same
@slcafe5542
@slcafe5542 Год назад
Thanks sir ❤️
@mrzaidivlogs
@mrzaidivlogs 6 лет назад
*Sir Please why don't make Videos Playlist on C Programming language Series?*
@nishantprajapati7166
@nishantprajapati7166 6 лет назад
plz make more video of DS in java language.
@randb9378
@randb9378 4 года назад
Queue . Think it as a normal queue in a shop.
@AmanMishra-rg3jd
@AmanMishra-rg3jd 4 года назад
sir please tech double ended queue, priority queue.
@vaddiralanagesh477
@vaddiralanagesh477 3 года назад
Why size increment
@sidramowlana
@sidramowlana 5 лет назад
Can u please do a video on priority queues
@yashuyashu2067
@yashuyashu2067 2 года назад
Thanks 😊
@dumplingcendawan9292
@dumplingcendawan9292 2 года назад
tq guru I love you very much.
@arjay_2002
@arjay_2002 3 года назад
How would i make the array dynamic?
@chirupower1317
@chirupower1317 4 года назад
What's the rear value And you didn't declare the value for rear
@zizothegreat2769
@zizothegreat2769 5 лет назад
isn't queue an interface meaning you can't create an object out of it?
@PastelEarth
@PastelEarth 5 лет назад
Queue is an interface when you use import java.util.Queue; but in this case he makes a class called "Queue", so he is able to make an object out of it.
@digitalnomadg
@digitalnomadg 6 лет назад
sir can u use Scanner in next queue video ??
@aniketkumarverma7291
@aniketkumarverma7291 5 лет назад
Sir tree implementation ka video bnna dijiye
@sakshinemade3389
@sakshinemade3389 3 года назад
Sir can u provide the code..... So that I can take reference and do practice....
@yohannistelila8879
@yohannistelila8879 6 лет назад
alliance! woow!
@technicalboy1816
@technicalboy1816 4 года назад
Bro, cant see on mobile
@basiccoder2166
@basiccoder2166 3 года назад
queue hai yaar ye concept jab graph already available hai :(
@sachinbhalla14
@sachinbhalla14 6 лет назад
can anyone explain it to me ??
@blackatomic1669
@blackatomic1669 5 лет назад
Welcome back aliens
@shanukumar6876
@shanukumar6876 6 лет назад
Sahe h
@karthikburugula2572
@karthikburugula2572 4 года назад
Bro are you telugu
@navasjaseer7508
@navasjaseer7508 6 лет назад
Hi sir
@muhammadbagusgunawan8551
@muhammadbagusgunawan8551 4 года назад
india ?? lek guduk gara gara dosen, ga kiro rene aku mbod
@ibabaibaba2994
@ibabaibaba2994 2 года назад
I'm not alien!!
@visruthcv7864
@visruthcv7864 5 лет назад
Dequeue() is incorrect, the correct is Deque() which may be pronounced as deq.
@Ash-td4sx
@Ash-td4sx 3 года назад
You are not a real programmer... real programmers hate the light mode
@gracesonsydonfernandes7443
@gracesonsydonfernandes7443 2 года назад
Alien is your father
@ArbazKhan-br9vz
@ArbazKhan-br9vz 5 лет назад
Stop saying aliens. Pleaseeeeeee!
Далее
How to Build a Homemade Bike Using a Barrel
00:21
Просмотров 1,2 млн
ВЛАД А4 СКАТИЛСЯ
09:34
Просмотров 565 тыс.
Learn Linked Lists in 13 minutes 🔗
13:24
Просмотров 297 тыс.
Queue In Java Tutorial #66
7:46
Просмотров 137 тыс.
Tree Implementation in Java | DSA
17:03
Просмотров 42 тыс.
Learn Queue data structures in 10 minutes 🎟️
10:07
How to Build a Homemade Bike Using a Barrel
00:21
Просмотров 1,2 млн