784. Letter Case Permutation
Recursive solution.
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 at most12
.S
will consist only of letters or digits.
Soulution:
1 | class Solution: |