About 321,000 results
Open links in new tab
  1. Basic Operations for Queue in Data Structure - GeeksforGeeks

    Mar 28, 2025 · Inserts an element at the end of the queue i.e. at the rear end. The following steps should be taken to enqueue (insert) data into a queue: Check if the queue is full. If the queue …

  2. Write an algorithm for inserting an element into a queue

    Step 1: If front = 1 and rear = N or front =rear + 1. Then print “OVERFLOW” and return.

  3. Queue Data Structure and Implementation in Java, Python and …

    We usually use arrays to implement queues in Java and C/++. In the case of Python, we use lists. self.k = k. self.queue = [None] * k. self.head = self.tail = -1 # Insert an element into the queue …

  4. Insertion in Queue

    May 9, 2023 · Insertion in a queue is an important operation that enables adding new elements to the queue in a proper and organized way. This operation is commonly used in computer …

  5. Queue Data Structure - Online Tutorials Library

    Queue uses two pointers − front and rear. The front pointer accesses the data from the front end (helping in enqueueing) while the rear pointer accesses data from the rear end (helping in …

  6. Insertion in a Queue in C programming - PrepInsta

    To insert an element in a queue that is for enqueuing we proceed using following algorithm:- Define the maximum size of queue and initialize front and rear as -1. In the main function we …

  7. What is Queue ? Algorithms to insert and delete in queue.

    Apr 13, 2012 · Algorithm for ENQUEUE (insert element in Queue) Input : An element say ITEM that has to be inserted. Output : ITEM is at the REAR of the Queue. Data structure : Que is an …

  8. Introduction to Queue Data Structure - GeeksforGeeks

    Mar 28, 2025 · Queue data structure can be classified into 4 types: Simple Queue: Simple Queue simply follows FIFO Structure. We can only insert the element at the back and remove the …

  9. Queue in Data Structures - Types & Algorithm (With Example)

    Jan 15, 2025 · To implement queues in data structures, arrays, and linked lists are commonly used, with array queues in data structures being one of the fundamental implementations. In …

  10. Write an Algorithm for implementing queue using array. - Ques10

    The enQueue() function is used to insert a new element into the queue data structure. The new element is always inserted in the Rear position. The enQueue() function takes one integer …

  11. Some results have been removed
Refresh