operations of a queue

By vivek kumar in 20 Jul 2024 | 08:58 pm
vivek kumar

vivek kumar

Student
Posts: 552
Member since: 20 Jul 2024

operations of a queue

20 Jul 2024 | 08:58 pm
0 Likes
Prince

Prince

Student
Posts: 557
Member since: 20 Jul 2024
  • Enqueue: Add an element to the end (rear) of the queue.

  • Dequeue: Remove an element from the front of the queue.

  • Peek (or Front): Get the element at the front without removing it.

  • IsEmpty: Check if the queue is empty.

  • IsFull (for fixed-size queues): Check if the queue is at maximum capacity.

  • Size: Get the number of elements in the queue.
  • 21 Jul 2024 | 12:40 am
    0 Likes

    Report

    Please describe about the report short and clearly.