Skip to content

Commit 7084137

Browse files
committed
Week 5
1 parent 0424c1f commit 7084137

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

word-break/8804who.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ def wordBreak(self, s: str, wordDict: List[str]) -> bool:
1212
if s[i:i+len(word)] == word:
1313
dp[i+len(word)] = True
1414

15-
return dp[-1]
15+
return dp[-1]
16+

0 commit comments

Comments
 (0)