Questions: Linked Lists

3 questions to test your understanding

Score: 0 / 3
Question 1 Multiple Choice

You hold a reference to a node in the middle of a singly linked list. What is the time complexity to insert a new node immediately after it?

AO(1)
BO(log n)
CO(n)
DO(n²)
Question 2 True / False

Linked lists are typically faster than arrays for insertion because linked list insertions run in O(1).

TTrue
FFalse
Question 3 Short Answer

What is the key structural difference between a singly and doubly linked list, and what does each trade off?

Think about your answer, then reveal below.