You are given a string of the form
101?01?110?0001
where the "?" characters are unknown digits in a string representing a binary number. For example, the string101
represents the number5
and the string11101
represents the number 29. You are instructed to print out all the possible numbers that this special string with "?" characters might represent. Each "?" is either a0
or1
digit. The string1?1
would require you to print both5
and7
, as either of those numbers could be represented by1?1
.Choose a programming language you are comfortable using.
...