Question DSA-LL-0001
EasyWhat does each node of a singly linked list contain?
- A.
Data and a pointer to the next node
- B.
Only data
- C.
Show answer and explanation
Answer: A
The last node's next pointer is null.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Linked Lists question
What does each node of a singly linked list contain?
Data and a pointer to the next node
Only data
Answer: A
The last node's next pointer is null.
An index
Data and pointers to both neighbours