MCQ Single Best Answer Easy

QWhat is the time complexity of the push operation in a stack data structure?

ID: #21504 Time Complexity 100 views
Question Info
#21504Q ID
EasyDifficulty
Time ComplexityTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A O(1)
  • B O(log N)
  • C O(N)
  • D O(N^2)
Correct Answer: Option A

Explanation

The push operation in a stack has a constant-time complexity of O(1), making it efficient for adding elements to the top of the stack.

Share This Question

Challenge a friend or share with your study group.