In a singly linked list, if the pointer $q$ to the node to be deleted is already given, then the node can be deleted in constant time by adjusting links.
So, the required time complexity is:
$O(1)$
Online Test Series, Information About Examination,
Syllabus, Notification
and More.
Online Test Series, Information About Examination,
Syllabus, Notification
and More.