← Goldman Sachs questions

Optimize Doubly Linked List memory using single pointer

Filed under Goldman Sachs

Discuss how doubly linked lists work and how to optimize their space usage by using a single pointer (e.g., XOR linked list), storing the bitwise XOR of the previous and next node addresses.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.