Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible strings we could create.
1 | Examples: |
Note:
S
will be a string with length between1
and12
.S
will consist only of letters or digits.
解法一:回溯
1 | class Solution { |
解法二:bit manipulation
1 | class Solution { |