Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 372 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 372 Bytes

Question Marks

Input: A string that contains zeros, ones, and question marks. Question marks may be replaced with either one or zero.

Given such string input, find all the possible strings that can be created from it.

Write a C++ function that returns all possible results.

Example:

Given the string "0?1", the following strings can be created:

001
011