1079. Letter Tile Possibilities ⭐
Medium
You have n
tiles
, where each tile has one letter tiles[i]
printed on it.
Return the number of possible non-empty sequences of letters you can make using the letters printed on those tiles
.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= tiles.length <= 7
tiles
consists of uppercase English letters.
解題
Runtime:0 ms, faster than 100%
Memory Usage: 1.9 MB, less than 87.5%
Last updated