Beginner Data Structures & Algorithms
Q40 / 100

What is a sentinel node in a linked list?

Correct! Well done.

Incorrect.

The correct answer is B) A dummy node at the head or tail to simplify edge cases in insert/delete operations

B

Correct Answer

A dummy node at the head or tail to simplify edge cases in insert/delete operations

Explanation

Sentinel (dummy) nodes eliminate special cases for empty lists or boundary conditions, simplifying code at the cost of one extra node.

Progress
40/100