Skip to content

Commit 794f343

Browse files
authored
Merge pull request #2611 from ColstonBod-oy/patch-9
Update 0091-decode-ways.java
2 parents 5f4f024 + c17e095 commit 794f343

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

java/0091-decode-ways.java

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
class Solution {
33

44
public int numDecodings(String s) {
5-
int[] dp = new int[s.length() + 1];
65
int twoBack = 1; // empty string
76
int oneBack = s.charAt(0) == '0' ? 0 : 1;
87
int current = oneBack;

0 commit comments

Comments
 (0)