What is the time complexity of inserting and deleting a node in a singly linked list?
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Asks for the time complexity of inserting and deleting nodes in a singly linked list at the head, the tail and positions in between. Tests whether you separate the cost of finding a position from the cost of relinking pointers, and whether you know what a tail pointer does and does not change.