Skip to content

Commit

Permalink
139 Word Break: removed unused set
Browse files Browse the repository at this point in the history
  • Loading branch information
aritC committed Dec 13, 2022
1 parent 456f323 commit 9c6beda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/139-Word- Break.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Solution {

public boolean wordBreak(String s, List<String> wordDict) {
boolean[] dp = new boolean[s.length() + 1];
Set<String> workDictSet = new HashSet<>(wordDict);


for (int i = 0; i < dp.length; i++) {
dp[i] = false;
Expand Down

0 comments on commit 9c6beda

Please sign in to comment.