โ† Amazon questions

Generate strings by substituting wildcard characters

Filed under Amazon

Given a string containing '?' wildcard characters where each '?' can be substituted with either '0' or '1', generate and print all possible binary strings.

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 Amazon questions

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