Question: Which representation is correct for a doubly - linked list with 2 nodes? Group of answer choices A doubly - linked list with two nodes:

Which representation is correct for a doubly-linked list with 2 nodes?
Group of answer choices
A doubly-linked list with two nodes: Tom and Sam. Tom's next pointer points to Sam. Sam's previous pointer points to Tom.
A doubly-linked list with two nodes: Tom and Sam. Tom's next pointer points to Sam. Sam's previous pointer points to Tom.
A doubly-linked list with two nodes: Tom and Sam. Tom's next pointer points to Sam. Sam's previous pointer points to null.
A doubly-linked list with two nodes: Tom and Sam. Tom's next pointer points to Sam and previous pointer points to null. Sam's next pointer points to null and previous pointer points to Tom.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!