1.

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 addressThis is a very interesting question from Xor Linked List in portion Types of Lists of Data Structures & Algorithms IThis question was posed to me in class test.

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.



Discussion

No Comment Found

Related InterviewSolutions