About 794,000 results
Open links in new tab
  1. Queue Data Structure - GeeksforGeeks

    Apr 7, 2025 · A Queue is a linear data structure that follows the FIFO (First In, First Out) principle. Elements are inserted at the rear and removed from the front. Queue Operationsenqueue(item) - Adds an element to the end of the queue.dequeue() - Removes and returns the first element from the queue.peek() - Re

  2. Queue in C++ STL - GeeksforGeeks

    Mar 3, 2025 · A Queue is a linear structure that follows a particular order in which the operations are performed. The order is First In First Out (FIFO). Syntax: queue<datatype> queuename;Datatype: Queue can take any data type depending on the values, e.g. int, char, float, etc. The std: :queue container d

  3. C++ Queue (With Examples) - Programiz

    The C++ STL queue provides the functionality of a queue data structure. In this tutorial, you will learn about the C++ queue and its various operations in C++ with the help of examples.

  4. C++ Program to Implement Queue Using Array - Online …

    Learn how to implement a queue using an array in C++ with this detailed guide and code examples.

  5. Queue in C - GeeksforGeeks

    3 days ago · In this article, we'll learn how to implement the queue data structure in the C programming language. We will also look at some of its basic operations along with their time and space complexity analysis. We can implement a queue in C using either an array or a linked list.

  6. Queue Data Structure and Implementation in Java, Python and C/C++

    In this tutorial, you will understand the queue data structure and it's implementations in Python, Java, C, and C++. Optimize your code and career with DSA , our most-demanded course. Learn to code efficiently with DSA

  7. Queue Data Structure In C++ With Illustration - Software …

    Apr 1, 2025 · In contrast to stack that uses the LIFO approach, queue uses the FIFO (first in, first out) approach. With this approach, the first item that is added to the queue is the first item to be removed from the queue. Just like Stack, the queue is also a linear data structure.

  8. Queue Implementation in C++ - Techie Delight

    May 31, 2022 · Queue has three main operations: enqueue, dequeue, and peek. We have already covered these operations and C implementation of queue data structure using an array and linked list. In this post, we will cover queue implementation in C++ using class and STL. The following queue implementation in C++ covers the following operations:

  9. Queue - Linear Queue | Data Structure Tutorial with C & C++

    Queue can be implementing by two ways: Array or contiguous implementation. Linked List implementation. In Array implementation FRONT pointer initialized with 0 and REAR initialized with -1. Consider the implementation :- If there is 5 items in a Queue. Note: In case of empty queue, front is one position ahead of rear : FRONT = REAR + 1;

  10. Queue Data Structure | Operations, Types & More (+Code

    In this article, we will explore the queue data structure, its types, operations, real-world applications, and how it can be implemented in various programming languages. What Is Queue Data Structure?

  11. Some results have been removed