+1 vote
in Data Structures & Algorithms I by (110k points)
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 B

My doubt is from Xor Linked List topic in section Types of Lists of Data Structures & Algorithms I

This question was addressed to me at a job interview.

1 Answer

+1 vote
by (672k points)
selected by
 
Best answer
The correct answer is (a) NULL xor A and B xor NULL

Easy explanation - NULL xor A and B xor NULL.

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.

Categories

...