We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29c74c1 commit 23ee149Copy full SHA for 23ee149
Word Break II.py
@@ -4,7 +4,6 @@ def wordBreak(self, s, dict):
4
f = [False for _ in xrange(n)]
5
trace = [[False] * n for _ in xrange(n)]
6
for i in xrange(n):
7
- trace.append([])
8
if s[:i+1] in dict:
9
f[i] = True
10
trace[0][i] = True
0 commit comments