Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

What is the best case time complexity of deleting a node in a Singly Linked list?

a) O (n)
b) O (n2)
c) O (nlogn)
d) O (1)

Answer: d
Explanation: Deletion of the head node in the linked list is taken as the best case. The successor of the head node is changed to head and deletes the predecessor of the newly assigned head node. This process completes in O(1) time.

Join The Discussion