We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5f4f024 + c17e095 commit 794f343Copy full SHA for 794f343
java/0091-decode-ways.java
@@ -2,7 +2,6 @@
2
class Solution {
3
4
public int numDecodings(String s) {
5
- int[] dp = new int[s.length() + 1];
6
int twoBack = 1; // empty string
7
int oneBack = s.charAt(0) == '0' ? 0 : 1;
8
int current = oneBack;
0 commit comments