Ultimate_Algorithms_Repository icon indicating copy to clipboard operation
Ultimate_Algorithms_Repository copied to clipboard

XOR Linked List; traversal

Open rishabharoraa opened this issue 5 years ago • 1 comments

XOR Linked List

  • In a doubly linked list, you store two pointers per node: prev and next. In an XOR linked list, you store one pointer per node, which is the XOR of prev and next, or if one of them is absent, just the other, which is the same as XORing with 0.
  • The reason why you can still traverse an XOR linked list in both directions relies on the properties of XOR and the redundancy of information inherent in a double linked list.

rishabharoraa avatar Oct 16 '20 11:10 rishabharoraa

Please assign this issue to me

rishabharoraa avatar Oct 16 '20 11:10 rishabharoraa