Question: What is the time complexity of finding the maximum element in a linked list?
Options:
Correct Answer: O(n)
Solution:
Finding the maximum element in a linked list requires traversing all elements, resulting in O(n) time complexity.