Open In App

Data Structures | Linked List | Question 16

Like Article
Like
Save
Share
Report

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


Last Updated : 28 Jun, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads