How do you calculate the pointer difference in a memory efficient double linked list?
A. head xor tail
B. pointer to previous node xor pointer to next node
C. pointer to previous node – pointer to next node
D. pointer to next node – pointer to previous node
Answer:B
How do you calculate the pointer difference in a memory efficient double linked list?
A. head xor tail B. pointer to previous node xor pointer to next node C. pointer to previous node – pointer to next node D. pointer to next node – pointer to previous node
Explanation: The pointer difference is calculated by taking XOR of pointer to previous node and pointer to the next node.