← Goldman Sachs questions

Singleton Pattern, Missing/Repeating Number, Loop Detection & K Stacks

Filed under Goldman Sachs

Cover multiple classic problems: Implement the Singleton pattern thread-safely, find the missing and repeating numbers in an unsorted array, detect and remove a loop in a linked list, and implement k…

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.