Question

What is the time complexity of the peek operation (accessing the top element without removing it) in a stack implemented using a singly linked list?

A O(N)
B O(log N)
C O(1)
D O(N log N)
E O(N^2)
Practice Next

Hey! Ask a query