Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2017 Set 2
Questions

Q13

MCQ1 mark, −0.33Data structures

A circular queue has been implemented using a singly linked list where each node consists of a value and a single pointer pointing to the next node. We maintain exactly two external pointers FRONT and REAR pointing to the front node and the rear node of the queue, respectively. Which of the following statements is/are CORRECT for such a circular queue, so that insertion and deletion operations can be performed in O(1)O(1) time? I. Next pointer of front node points to the rear node. II. Next pointer of rear node points to the front node.

Sign in to save attempts.

Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.