Implement Doubleton and Tripleton patterns
Filed under Goldman Sachs
The question
Modify the Singleton design pattern to create a 'Doubleton' where even calls return one instance and odd calls return another. Extend this to a 'Tripleton'.
No write-up yet. Related questions below have one.
Related Goldman Sachs questions
Collected from public candidate posts and coding forums. Updated Nov 2026.