Complete Queue Data Structure | in One Shot | Java Placement Course

Sdílet
Vložit
  • čas přidán 4. 09. 2024

Komentáře • 349

  • @jayant696
    @jayant696 Před 2 lety +46

    ArrayDeque vs LinkedList Implementation:
    -In Deque a small number of insertions run in Θ(n) time by doubling the array capacity and copying elements over.
    -Accesse time -dynamic arrays are usually faster than linked lists.
    -Memory - Linked list usually take O(n) total extra memory due to the storage of an extra pointer in each element.
    -Worst CAselinked list versions have better worst-case behavior
    Conclusion: If per operation time is not important, Deque implementation is better

  • @mohdsameer2445
    @mohdsameer2445 Před rokem +23

    If you need efficient random access or require frequent modifications at both ends of the queue, ArrayDeque is a better choice. On the other hand, if fast insertion and removal at the beginning or end of the queue are the main concerns, LinkedList can be a suitable option.

  • @Rahul-iv3xm
    @Rahul-iv3xm Před 2 lety +21

    13:55 time complexity of peek operation in queue is o(1). btw the lecture was greatt.

  • @javadotcode
    @javadotcode Před rokem +7

    The removal of the elements from the queue can be done in O(1) by just incrementing the front pointer and when it reaches to rear make front and rear -1
    It will never take O(n) to peek and remove from the queue.

    • @reekdas9219
      @reekdas9219 Před 11 měsíci +2

      that's what i was thinking, peek will only take O(1)

  • @swapnilkumar2622
    @swapnilkumar2622 Před 2 lety +47

    Just one word 'Thankyou'
    Thank you for each and everything you guys are doing for us 😊
    I'm in first year and I cannot describe how beneficial the videos are for me. Thank you Shraddha didi, Aman Bhaiya & team for the efforts ❤️

  • @madhusudans337
    @madhusudans337 Před 2 lety +68

    Mam please make more videos on java placement course I am a third year undergrad student currently in 6th sem companies will be arriving in next 6 months and continously following these placement course series in java.
    Requesting @Apna College to upload videos regularly waiting since over a week for next upcoming videos.

  • @divyapasreeja5497
    @divyapasreeja5497 Před 2 lety +32

    Shradha,
    You explained the queue concept in so easy manner.Thank you so much.
    Would you please explain how the complexity of peek method is O(n)?
    As far as I think it should be O(1) as we are just printing the 0th element of the array.

    • @baibhabchakraborty266
      @baibhabchakraborty266 Před 2 lety

      ya, i also think that

    • @codersdock2374
      @codersdock2374 Před 2 lety

      That is peek + remove function i.e both combined function complexity is O (n). Hope it is clear

    • @baibhabchakraborty266
      @baibhabchakraborty266 Před 2 lety

      @@codersdock2374 Thank you

    • @Himanshu-ow3ge
      @Himanshu-ow3ge Před 2 lety

      @@codersdock2374 but we dont have to use both to print. we can only do
      1. sysout(queue.remove())
      instead of
      1. sysout(queue.peek())
      2. queue.remove()

    • @akshaypatil3785
      @akshaypatil3785 Před rokem

      @@codersdock2374 peek would take O(1) and pop would take O(n)

  • @prachipatil6110
    @prachipatil6110 Před 2 lety +11

    Please upload videos frequently ...and complete the course ...please...and thanks for wonderful content

  • @mahuakundu4310
    @mahuakundu4310 Před 2 lety +8

    I really liked your teaching style and it is excellent!
    However, in this Queue Implementation, a few things need to modify.
    1. We should not use the static method while creating Data structures like Stack, array, LinkedList, and queue because we should use static for utility classes in order to check like-string to upper-class and lower-class, etc.
    2. In this queue data structure, we need to store some value that is the purpose.
    3 .When to use the static class:
    Static should use when you give some input and act on that and return something. It never persists in anything.
    in your program, you used the static class Queue-it should Non-static Queue class.
    Overall, I really enjoyed your every video. you are doing a really great job. Keep it up!!!

  • @ABHISHEKKUMAR-ek6dl
    @ABHISHEKKUMAR-ek6dl Před 2 lety +5

    plzz maam make video on binary tree , heapmap, graph also ur teaching way is awesome very easy to understand... I m from electrical background and watch every video if I know coding it all because of u .... u r great mentor

  • @satyamagrahari7546
    @satyamagrahari7546 Před 2 lety +5

    Hi Team , so basically content is too much good and guys are also lovely one thing i would like to inform you that during teaching the concept you speed should be little bit slow then we can understand better with good mindset your every video too much helpful , needful for us. Thanks a lot to you guys for creating such a nice content. A lot of love from my side. :)

  • @aashishsinghnagvanshi4155

    congratulations aman bhaiya shardha didi and all the members of apna college family aaj hamri family 1 million ki ho gyi. ye ham sabhi kabhi glorious moment hai

  • @Piyush0904
    @Piyush0904 Před 2 lety +85

    Mam NFT , meta verse , or block chain technology, web 3.0 kya hai or iska future kya hai , eak video mere liye bhi bana do plz

    • @mishra.pritam
      @mishra.pritam Před rokem +5

      Kuch nhi

    • @techbittu47
      @techbittu47 Před rokem +2

      Wa bhai tu toh 2035 ki zindagi soch raha hei🎉

    • @ChayK11
      @ChayK11 Před 5 měsíci

      😊😊😊😊😊😊😊😊😊😊😊😊😊

    • @Deep-Ak47
      @Deep-Ak47 Před 5 měsíci

      Pijush hai Bhai vo kuch bhi kr skta hai ​@@techbittu47

  • @ankitpradhan4477
    @ankitpradhan4477 Před 2 lety +3

    ma'am, tbh u r just an angel for me thanks for the teaching. A most understanding and a teacher with all behaviors of a student just a complete package. Thanks a lot.

  • @himanshujakhmola5960
    @himanshujakhmola5960 Před 2 lety +2

    arraydequeue is faster than linked list but when it comes on time sensitive applications we use linked list, because of its cache and operation time taking

  • @rajatbarthwal9858
    @rajatbarthwal9858 Před 2 lety +1

    Great explaination, I was struggling with the topic but now it's clear.
    Thanks

  • @hpb999
    @hpb999 Před 2 lety +3

    Wow 😍
    I like you
    M aapke saari video dekhta hu

  • @sonuakhtar9816
    @sonuakhtar9816 Před 2 lety +1

    Very nice and informative video, very well explained without creating any confusion.
    Thanks to you.

  • @krishshah8199
    @krishshah8199 Před 2 lety +4

    🙏🏻🙏🏻🙏🏻🙏🏻Didi pls continue these series and pls make regular videos it's an humble request, it's Truly necessary🙏🏻🙏🏻🙏🏻🙏🏻

  • @SIZENMENTOR
    @SIZENMENTOR Před rokem

    difference between arraydeque and linked list The general-purpose implementations include LinkedList and ArrayDeque classes. The Deque interface supports insertion, removal and retrieval of elements at both ends. The ArrayDeque class is the resizeable array implementation of the Deque interface, whereas the LinkedList class is the list implementation.
    The basic insertion, removal and retrieval operations in the Deque interface addFirst, addLast, removeFirst, removeLast, getFirst and getLast. The method addFirst adds an element at the head whereas addLast adds an element at the tail of the Deque instance.
    The LinkedList implementation is more flexible than the ArrayDeque implementation. LinkedList implements all optional list operations. null elements are allowed in the LinkedList implementation but not in the ArrayDeque implementation.
    In terms of efficiency, ArrayDeque is more efficient than the LinkedList for add and remove operation at both ends. The best operation in a LinkedList implementation is removing the current element during the iteration. LinkedList implementations are not ideal structures to iterate.
    The LinkedList implementation consumes more memory than the ArrayDeque implementation.

  • @manoharank9171
    @manoharank9171 Před 2 lety +3

    Wonderful explanation. Could you put english subtitles to understand better

  • @tech-and-fun-10
    @tech-and-fun-10 Před 2 lety +1

    1 million subscribers completed just now😯😯😯

  • @riyamandlikar9441
    @riyamandlikar9441 Před 2 lety

    The best page I've ever come across. Thank you, your examples after explaining are the cherry on the cake.💝

  • @architsangal
    @architsangal Před 2 lety +5

    Please if possible can you post the video a little more frequently
    Otherwise it will take a lot of time to complete the series

  • @jaduvala5921
    @jaduvala5921 Před 2 lety +3

    Ma'am , please upload the next videos, we are eagerly waiting for that.

  • @AmanGupta-eh4qs
    @AmanGupta-eh4qs Před 2 lety +1

    This is premium lectures of Java♥️

  • @rajatkantnayak4019
    @rajatkantnayak4019 Před 2 lety +1

    1. Why do you define the add, remove and peek methods as static? They should be instance methods and, therefore, not static
    2. Why do you define the static class queue? Skip it and write its code as the body of the Queue class
    In addition, I suggest implementing the internal linked List using a sentinel head node. The sentinel does not contain valid data, only zero. This simplifies the implementation of the various methods.

  • @shaileshhacker
    @shaileshhacker Před 2 lety

    33:33 At line no. 16
    It should be
    return head == null && tail == null;

  • @MZ-ri9dc
    @MZ-ri9dc Před 2 lety +1

    Dear mam please provide full lecture series one by one video lectures continuously

  • @vishalpandey5793
    @vishalpandey5793 Před 2 lety +1

    Thank you very much didi. You are doing great job... But video is tooo late

  • @sameerkhan-xu4ve
    @sameerkhan-xu4ve Před 2 lety +2

    Advance congrats didi to hit 1 million ..

  • @abignyareddymadireddy2434

    Pls upload next videos
    Please didi😥
    And thank you so much , great content . Love you 3000

  • @mightyraju6817
    @mightyraju6817 Před 2 lety +1

    Thank you very much didi. You are doing great job...I follow this java placement course.

  • @YashSharma-zw9zp
    @YashSharma-zw9zp Před 2 lety +2

    Please tell how to make a doubly linked list. In linked list video, there is only one type of linked list

  • @manojpradhan3546
    @manojpradhan3546 Před 2 lety +1

    Mam please upload videos regularly I'm a final year student it will be very helpful for me please @apna college

  • @anilkumarreddy4444
    @anilkumarreddy4444 Před 2 lety +1

    Tomorrow 1 million subscribers wali didi

  • @nishudwivedi3478
    @nishudwivedi3478 Před 2 lety +1

    Ab aap videos upload kroge ya nhi atleast itna bta do.... Taaki hm khi or se pdh le..... Aap pr depend na rhe...... Please.......hmm aapki videos ka intzar kr rhe h

  • @subhasissanyal88
    @subhasissanyal88 Před 11 měsíci

    Thank you so much didi apki bajha se coding mein itna kuch sikh paya

  • @tamradhwajsherpa2309
    @tamradhwajsherpa2309 Před 2 lety +1

    mam please about the dot(.) opration in java how to use this opration

  • @manua9858
    @manua9858 Před 2 lety +1

    Congratulation for 1million subscribers 👍

  • @fashiondesign4385
    @fashiondesign4385 Před 2 lety

    Api Kia ap distribute database system k lecture day Sakti Hy ap mashallah Bhat Acha c lecture dati Hy Allah ap ko Zindagi ma Bhat kamyab kry or homes Kashi Rakh ap ki team ko bi

  • @farmanali1089_
    @farmanali1089_ Před 2 lety +1

    I was waiting for this video.
    Thanks 😊👍

  • @AyushMishra-gk7dt
    @AyushMishra-gk7dt Před 2 lety +1

    Maybe in long term this wi fetch you guys more views and good for the channel.
    But, we, who are subscribing today and making the channel big don't get to enjoy the perks of this channel.
    This course was started in my 6th, and my 7th sem is about to end. Such inconsistentcy.

  • @gautamrawat6914
    @gautamrawat6914 Před 2 lety +1

    Thank you mam for your support🙏🙏 i am eagerly waiting for your videos

  • @MrSujitkumardas
    @MrSujitkumardas Před 2 měsíci

    How peek operation in queue implementation using array taking O(n) time? Should not it be O(1)?

  • @user-rb2pb8kp8c
    @user-rb2pb8kp8c Před 4 měsíci

    mam please upload more lectures of question solving in this seriesss....

  • @subhabratabasu9804
    @subhabratabasu9804 Před 2 lety +1

    Hi shrada ,please upload competitive coding with DP.As a python and c++ coder I never learned java that seriously but your courses are very helpful to relearn things.

    • @clubsign36
      @clubsign36 Před 2 lety

      dsa is same for all langauge infact it is not for one langauge ...concept same hai just acc to lanaguage chize change krni hoti hai

  • @goprothink4517
    @goprothink4517 Před 2 lety

    Please add video frequently. Complete the course.

  • @ameypugaonkar9487
    @ameypugaonkar9487 Před 2 lety +1

    Didi tree and graph ke bhi vidoes jaldhi upload karo

  • @yathinkversegulugulu
    @yathinkversegulugulu Před rokem +1

    THANK YOU Guyzz

  • @rekhak2415
    @rekhak2415 Před 2 lety

    mam , plz upload videos regularly ...wonderful content

  • @OGDEEPAK
    @OGDEEPAK Před 2 lety +1

    Osm vedio ma'am. It's very helping us ☺
    ..

  • @shake2893
    @shake2893 Před 7 měsíci +1

    di aapne QUEUE k notes STACK naam se save kiye h,jo hme confuse kr rha h
    Thank you for lecture

  • @manthanpatel8409
    @manthanpatel8409 Před 2 lety +1

    Ohh it's about to be 1M😍

  • @FireGamerz-of6vv
    @FireGamerz-of6vv Před 6 měsíci

    Array peek is taking is o(1) but while explaining there is o(n) is mentioned

  • @abhaychouhan1511
    @abhaychouhan1511 Před 2 lety +2

    How an BCA student can get an internship?

  • @wasifdewan8365
    @wasifdewan8365 Před 2 lety

    Great Job Didi
    U r amazing 🤍
    Love from Bangladesh 🇧🇩❤️

  • @veerendrashukla
    @veerendrashukla Před 2 lety +1

    Hello, have you planned for graph data structure details, example video? if , possibly when?

  • @SahilKhan-cf5wh
    @SahilKhan-cf5wh Před 2 lety +1

    Someone have idea how much lectures are left in java ?

  • @kahanx10
    @kahanx10 Před 2 lety +2

    Thanks a lot, we appreciate your efforts, but kindly continue uploading ahead so that we can be consistent in our learning, please help us complete this course that we have started!

  • @004_sreelemonchandramohont9

    Sir I have a question you said that front is fixed in front location but when I read the book name was "Data structures by -=SEYMOUR LIPSCHITZ=-" . in this book they said whenever an element is deleted from the queue the value of front is increased by 1 this can be implemented by the assignment FRONT :=Front+1; similarly when we inserted an element on array its assignment RARE :=RARE + 1; so now I am in confusion whom should I follow you or the book ? Please sir, clear it.

  • @chandrakantdehury
    @chandrakantdehury Před rokem +1

    hi ma'am I think time complexity of peek function using array in queue ds is O(1), isn't it?

  • @jayant2366
    @jayant2366 Před 2 lety

    mam please iss course ke video jaldi jaldi post kiya karo we need it ❤️

  • @chiragbhatia2316
    @chiragbhatia2316 Před 9 měsíci

    Remove operation takes O(n) time in array implementation makes sense but why would peek operation take O(n) time? It will have O(1) constant access time right?

  • @-Nanda-xb4ld
    @-Nanda-xb4ld Před 2 lety

    Please made a video on Java developer and how to become a Java developer...

  • @hishamkhan7121
    @hishamkhan7121 Před 2 lety

    Hello Aman Bhai and Dedi.
    Thanks for your efforts.
    Next video kab ayege?

  • @mearjuntripathi
    @mearjuntripathi Před 2 lety

    Stack ko reverse kar ke pop krenge and fir reverse kar dege and insert karenge o(1) me

  • @gleanfact8318
    @gleanfact8318 Před 2 lety

    Soon 1 Million Didi you deserve it

  • @ITSNIHARSHARMA
    @ITSNIHARSHARMA Před 10 měsíci

    lecture was v helpful but i think this topics need much time to get full controle over them.

  • @suyashmaurya4608
    @suyashmaurya4608 Před 2 lety +1

    Please make a course on python please your teaching is very awesome

  • @mohdarmansiddiqui7970
    @mohdarmansiddiqui7970 Před 2 lety

    Please upload rest of the video so that we can complete this course

  • @afzalansari1727
    @afzalansari1727 Před 3 měsíci

    is Peek() opperation using array O(n) as u said ? Please correct me. Thanks!!

  • @prashanth8093
    @prashanth8093 Před 2 lety +1

    Please upload videos frequently

  • @nishudwivedi3478
    @nishudwivedi3478 Před 2 lety +1

    Next video kb aaiga.... Agr aap log itna late videos daaloge... To kaise chlega...... Hm khuch bhi nhi krpainge.........

  • @user-bc6ss6gp3z
    @user-bc6ss6gp3z Před 6 měsíci

    #Apna Collge & shradda didi rocks 👍👍🙌🙌

  • @ZK-nc6wb
    @ZK-nc6wb Před 2 lety

    Mdm jaldi se ye course pura kar djye hmare pas jyda time nhi h placement ko plzzzz

  • @chaitanyalohar9308
    @chaitanyalohar9308 Před 2 lety

    mam please upload videos regularly , we are waiting.......for new videos

  • @hemant_Sahu_7
    @hemant_Sahu_7 Před rokem

    Sharadha Didi plz make a playlist OF DSA with lots of question with your explanation videos

  • @mr.aditya9308
    @mr.aditya9308 Před 2 lety +1

    Mam c++ ka one shot video banao plz

  • @rahulmandal3018
    @rahulmandal3018 Před 2 lety

    Shraddha di plz video daliye
    Course ko continue kijiye

  • @JEVIN-OFFICIAL
    @JEVIN-OFFICIAL Před 2 lety +1

    8:17 Queue mai delete karne par rear piche nahi aayega,,,, front ek bar aage ayega just little bit mistake from Microsoft wali didi🥰😂😂

  • @prajwal3147
    @prajwal3147 Před 2 lety +1

    Please teach python like c+

  • @namanshah1125
    @namanshah1125 Před rokem

    Good explanation, just a quick question: On geeks for geeks, it's shown that the time complexity of array with queue during the usage of remove and peek functions is O(1) whereas in your video it is shown as O(n). Can you please clear this doubt?
    Thank you!

  • @user-cw8ln6id4m
    @user-cw8ln6id4m Před 11 měsíci

    keep subtitles also please so that people who dont understand hindi can aslo go through

  • @coolcoding6279
    @coolcoding6279 Před 2 lety

    Congratulations for 1 million subs🥳
    ❤️❤️❤️❤️

  • @TG88898
    @TG88898 Před 2 lety +1

    Indians in line in sabzi mandi....🤣🤣🤣🤣😂😂😂

  • @studyplatform2417
    @studyplatform2417 Před 2 lety +2

    Mam I am studying degree 2nd year we learning data structure in that queue topic is there.thank u I am understood very well your class.I don't know hindi very well ....
    But your explanation superb and easily understand :)

  • @anshupatel8087
    @anshupatel8087 Před 8 měsíci

    why are we not implementing Queue using ArrayList instead of an Array since it won't have any fixed size.

  • @asthasaxena6465
    @asthasaxena6465 Před 2 lety

    Hi Shradha, love your videos but below classes also implement queue interface- AbstractQueue, ArrayBlockingQueue, ArrayDeque, ConcurrentLinkedDeque, ConcurrentLinkedQueue, DelayQueue, LinkedBlockingDeque, LinkedBlockingQueue, LinkedList, LinkedTransferQueue, PriorityBlockingQueue, PriorityQueue, SynchronousQueue why you didnt involve all?Any specific resaon

  • @muhammadshahzarkhan2594

    Assalam o Alikum, kindly upload the new Video, we are very eagerly waiting to learn the new concept of Java.

  • @shubhamkoli8926
    @shubhamkoli8926 Před rokem

    priority queue and double ended queue would have been great if was added.

  • @amitsahu416
    @amitsahu416 Před rokem

    Please Introduce Course of System Design as well

  • @niveditawani3183
    @niveditawani3183 Před 2 lety

    Dii upload further videos also...Complete DSA in JAVA

  • @mindblow3029
    @mindblow3029 Před 2 lety

    Please complete the series we are waiting. If you really want to helps us then please complete this java series we are getting disappointed the delay you are doing. Please complete it.

  • @abhishekdas6772
    @abhishekdas6772 Před rokem

    guys in implementation in array why is the tc of peek is O(n), as we return only using the index then the tc should be O(1). Help me out if u know..

  • @premjeetk8292
    @premjeetk8292 Před 2 lety +1

    Ma'am, Next video upload kijiye

  • @deepsaha2381
    @deepsaha2381 Před rokem

    When I executed the program with
    Queue q= new ArrayDeque();
    And,
    Queue q= new LinkedList();
    It shows "The type Queue is not generic;"
    How to solve this?

  • @abhishekraut1
    @abhishekraut1 Před 2 lety

    Congratulations fro 10 million 😘💯

  • @mayurdhande4043
    @mayurdhande4043 Před 2 lety

    Congratulations 1milion advance 🎉

  • @user-rw8qj3yl2n
    @user-rw8qj3yl2n Před 9 měsíci +1

    Make DSA video on c