Stack vs Queue | Difference Between Stack And Queue | Data Structures And Algorithms | Simplilearn

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

Комментарии • 27

  • @SimplilearnOfficial
    @SimplilearnOfficial  3 года назад +1

    🔥Full Stack Java Developer Program (Discount Code - YTBE15) - www.simplilearn.com/java-full-stack-developer-certification?XSXfBI_0nw&Comments&RUclips
    🔥Full Stack Developer - MERN Stack Program (Discount Code - YTBE15) - www.simplilearn.com/full-stack-developer-course-mern-certification-training?XSXfBI_0nw&Comments&RUclips
    🔥Caltech Coding Bootcamp (US Only) - www.simplilearn.com/coding-bootcamp?XSXfBI_0nw&Comments&RUclips

  • @vanitaghadage744
    @vanitaghadage744 3 года назад +1

    Got the hold of concept, Thanks....

    • @SimplilearnOfficial
      @SimplilearnOfficial  3 года назад

      You are very welcome. Do subscribe to our channel and stay tuned for more.

  • @atharvajadhav1677
    @atharvajadhav1677 3 года назад +1

    Really great video

  • @exiphykiller8438
    @exiphykiller8438 3 года назад

    I think the answer to your question is Linked List.
    Because in arrays we cannot decide the size at run time. Which means if our array gets completely filled, we will have to copy the contents of created array into larger array. And this will take twice the memory as of array.

    • @SimplilearnOfficial
      @SimplilearnOfficial  3 года назад +1

      You got it right.
      Explanation: Array is better than a linked list if the list is in close bound. That means the array can be favourable only if we know the size of our list. But if we don't, then a linked list is going to be a better tool as we can increase the size of this data structure at any instance of our program. Further, the speed for performing operations on a linked list is much faster. Hence, the ideal answer for this question will be a linked list considering memory management as a parameter.

  • @prasadsawant6335
    @prasadsawant6335 3 года назад +1

    I think the answer is array. Because linked list might need extra memory to store pointers.

    • @SimplilearnOfficial
      @SimplilearnOfficial  3 года назад

      Oops, you got it wrong. The correct answer is linked list.
      Explanation: Array is better than a linked list if the list is in close bound. That means the array can be favourable only if we know the size of our list. But if we don't, then a linked list is going to be a better tool as we can increase the size of this data structure at any instance of our program. Further, the speed for performing operations on a linked list is much faster. Hence, the ideal answer for this question will be a linked list considering memory management as a parameter.

  • @shadabmuzafarkhil
    @shadabmuzafarkhil Год назад

    The answer is )
    The linked list implementation (dynamic)
    Because queue Data structure is a bit more easily to implement and store ‘Delete and remove the data
    Regards (Ahmad shadab )

  • @rajeshvarymohod3815
    @rajeshvarymohod3815 3 года назад +1

    Thank you mam , good explanation 👍

  • @what2watch33
    @what2watch33 3 года назад

    What software you use to make informational videos like this??

    • @SimplilearnOfficial
      @SimplilearnOfficial  3 года назад

      HI, the above video has been made using Adobe Premiere Pro and Microsoft PPTS. Thanks.

  • @mansishmahakul7718
    @mansishmahakul7718 3 года назад

    Q 》 Array Implementation would be the answer .

    • @SimplilearnOfficial
      @SimplilearnOfficial  3 года назад +1

      Oops, you got it wrong. The correct answer is Linked List.

      Explanation: Array is better than a linked list if the list is in close bound. That means the array can be favourable only if we know the size of our list. But if we don't, then a linked list is going to be a better tool as we can increase the size of this data structure at any instance of our program. Further, the speed for performing operations on a linked list is much faster. Hence, the ideal answer for this question will be a linked list considering memory management as a parameter.

  • @sanketjadhav8678
    @sanketjadhav8678 3 года назад +1

    I guess the answer is Linked List. Because due to its dynamic nature, it's size can be increased at any instance of our program.

    • @SimplilearnOfficial
      @SimplilearnOfficial  3 года назад +1

      You got it right.
      Explanation: Array is better than a linked list if the list is in close bound. That means the array can be favourable only if we know the size of our list. But if we don't, then a linked list is going to be a better tool as we can increase the size of this data structure at any instance of our program. Further, the speed for performing operations on a linked list is much faster. Hence, the ideal answer for this question will be a linked list considering memory management as a parameter.

  • @mthokozisikhumalo3737
    @mthokozisikhumalo3737 3 года назад

    Based on my comprehension, answering this question with this superficial information was hard.. Array implementation has more effective close bounds in set..

    • @SimplilearnOfficial
      @SimplilearnOfficial  3 года назад

      Thanks for watching our video and sharing your thoughts. Do subscribe to our channel and stay tuned for more. Cheers!

  • @shadabmuzafarkhil
    @shadabmuzafarkhil Год назад

    I think the real-life example didn’t much properly because if we want to remove a book we can remove it from the middle-end top anyway and from the line of the people for a ticket cabin we can remove people from anywhere by asking them so at all I think the real-life example is not matching at all
    Regards

  • @varshask3231
    @varshask3231 3 года назад

    I guess linked lists because it's size is not priorly defined

    • @SimplilearnOfficial
      @SimplilearnOfficial  3 года назад

      You got it right.
      Explanation: Array is better than a linked list if the list is in close bound. That means the array can be favourable only if we know the size of our list. But if we don't, then a linked list is going to be a better tool as we can increase the size of this data structure at any instance of our program. Further, the speed for performing operations on a linked list is much faster. Hence, the ideal answer for this question will be a linked list considering memory management as a parameter.

  • @harshnaikade646
    @harshnaikade646 3 года назад

    I think the answer is Linked List.
    Linked list allows us to manage memory more efficiently due to it's property to increase size at any instance of program.

    • @SimplilearnOfficial
      @SimplilearnOfficial  3 года назад +1

      You got it right.
      Explanation: Array is better than a linked list if the list is in close bound. That means the array can be favourable only if we know the size of our list. But if we don't, then a linked list is going to be a better tool as we can increase the size of this data structure at any instance of our program. Further, the speed for performing operations on a linked list is much faster. Hence, the ideal answer for this question will be a linked list considering memory management as a parameter.