What is the time complexity of inserting a node at the beginning of a singly linked list?
O(log n)
O(n)
O(1)

Data Structures and Algorithms Exercises are loading ...