To implement a queue using an array, you typically use two pointers: _______ and _______.

  • Front, Back
  • Head, Tail
  • Initial, Final
  • Start, End
When implementing a queue using an array, two pointers are commonly used: Front and Rear (or Head and Tail). The Front pointer points to the front of the queue, and the Rear pointer points to the end of the queue. These pointers are adjusted during enqueue and dequeue operations.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *