We’re preparing your current view and syncing the latest data.
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. You can return the output in any order.
Example: Input: s = "a1b2" Output: ["a1b2", "a1B2", "A1b2", "A1B2"]
A single string s consisting of alphanumeric characters.
A list of strings representing all possible letter case permutations of s.
1 <= s.length <= 12 s consists of letters and digits.
Example 1
Input
a1b2
Output
["a1b2", "a1B2", "A1b2", "A1B2"]
Explanation
Each letter 'a' and 'b' can be either lower or uppercase, digits remain unchanged.