Question: What is the average time complexity of searching for an element in a stack?
Options:
Correct Answer: O(n)
Solution:
Searching for an element in a stack has an average time complexity of O(n) because you may need to traverse the entire stack.