What is the time complexity of searching for an arbitrary element in an unsorted stack?
Options
- A. O(1)
- B. O(log n)
- C. O(n)
- D. More than one of the above
- E. None of the above
Quiz Practice:
C. O(n)
Correct Answer: C. O(n)
Explanation: In the worst case, every element must be examined to find a particular element in an unsorted stack.