Skip to content

Commit 892e365

Browse files
authored
Update UniqueSubsequencesCount.java
1 parent 33f06a8 commit 892e365

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/com/thealgorithms/dynamicprogramming/UniqueSubsequencesCount.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ private UniqueSubsequencesCount() {
1919
public static int subseqCount(String str) {
2020

2121
dp = new int[str.length() + 1];
22-
23-
for (int i : dp) {
24-
Arrays.fill(dp, -1);
25-
}
22+
Arrays.fill(dp, -1);
2623

2724
return recursiveCall(str, 0, dp);
2825
}

0 commit comments

Comments
 (0)