I am reading an XOR linked list (from Wikipedia). But I have some problems in his understanding.
I do not get the next paragraph.
To start moving the list in any direction from some point, you need the address of two consecutive elements, not just one. If the addresses of two consecutive elements are canceled, you will go to the list in the opposite direction.
I have a few questions about this:
How does it work (XOR linked list itself)?
(It would be great if you justified your answer by giving an example.ie example by accepting some addresses and then doing some calculations accordingly.)
How can I implement it? A brief description of the implementation.
- Practically, where is it or can I use it? Is it really useful as it seems?
source
share