← Goldman Sachs questionsGenerate all strings by replacing '?' with 0 or 1
Filed under Goldman Sachs
Given a string consisting of 0s, 1s, and '?'s, generate and print all possible strings by replacing each '?' with either '0' or '1'.
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.