InterviewSolution
Saved Bookmarks
| 1. |
What does first and last nodes of a xor linked lists contain ? (let address of first and last be A and B)(a) NULL xor A and B xor NULL(b) NULL and NULL(c) A and B(d) NULL xor A and BMy doubt is from Xor Linked List topic in section Types of Lists of Data Structures & Algorithms IThis question was addressed to me at a job interview. |
|
Answer» The correct answer is (a) NULL XOR A and B xor NULL |
|