+1 vote
in Data Structures & Algorithms I by (110k points)
What does a xor linked list have?

(a) every node stores the XOR of addresses of previous and next nodes

(b) actuall memory address of next node

(c) every node stores the XOR of addresses of previous and next two nodes

(d) every node stores xor 0 and the current node address

This is a very interesting question from Xor Linked List in portion Types of Lists of Data Structures & Algorithms I

This question was posed to me in class test.

1 Answer

+1 vote
by (672k points)
selected by
 
Best answer
The correct choice is (a) every node stores the XOR of addresses of previous and next nodes

The best explanation: Every node stores the XOR of addresses.

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

...