What is the time complexity of finding the middle element in a singly linked list? Explain your answer.
O(log n)
O(n)
O(1)
O(n^2)

Programming Languages Exercises are loading ...