Skip to content

Commit e0fce4b

Browse files
refactor 639
1 parent 1700eed commit e0fce4b

File tree

1 file changed

+0
-30
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-30
lines changed

src/main/java/com/fishercoder/solutions/_639.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 639. Decode Ways II
5-
*
6-
* A message containing letters from A-Z is being encoded to numbers using the following mapping way:
7-
8-
'A' -> 1
9-
'B' -> 2
10-
...
11-
'Z' -> 26
12-
Beyond that, now the encoded string can also contain the character '*',
13-
which can be treated as one of the numbers from 1 to 9.
14-
15-
Given the encoded message containing digits and the character '*',
16-
return the total number of ways to decode it.
17-
18-
Also, since the answer may be very large, you should return the output mod 109 + 7.
19-
20-
Example 1:
21-
Input: "*"
22-
Output: 9
23-
Explanation: The encoded message can be decoded to the string: "A", "B", "C", "D", "E", "F", "G", "H", "I".
24-
Example 2:
25-
Input: "1*"
26-
Output: 9 + 9 = 18
27-
28-
Note:
29-
The length of the input string will fit in range [1, 105].
30-
The input string will only contain the character '*' and digits '0' - '9'.
31-
32-
*/
333
public class _639 {
344
public static class Solution1 {
355
/**

0 commit comments

Comments
 (0)