Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc17e095

Browse files
Update 0091-decode-ways.java
Removed unused dp array for the optimal solution.
1 parent5f4f024 commitc17e095

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

‎java/0091-decode-ways.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
classSolution {
33

44
publicintnumDecodings(Strings) {
5-
int[]dp =newint[s.length() +1];
65
inttwoBack =1;// empty string
76
intoneBack =s.charAt(0) =='0' ?0 :1;
87
intcurrent =oneBack;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp