Data Structures | Linked List | Question 16
Which of the following is an application of XOR-linked lists?
(A)
Implementing stacks
(B)
Implementing queues
(C)
Memory-efficient linked list representation
(D)
Caching data structures
Answer: (C)
Explanation:
XOR linked lists are a memory-efficient representation of linked lists. They store the XOR combination of the addresses of the previous and next nodes, reducing the memory overhead compared to traditional linked lists.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Please Login to comment...