What is the time complexity of adding an element to the queue (enqueue…

PYQ CoCubes 2025

What is the time complexity of adding an element to the queue (enqueue operation)?

  1. A.

    O(1)

  2. B.

    O(n)

  3. C.

    O(n log n)

  4. D.

    O(n^2)

Attempted by 802 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…