Skip to content

Commit

Permalink
Fixed a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yjc801 committed Sep 13, 2014
1 parent 29c74c1 commit 23ee149
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Word Break II.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ def wordBreak(self, s, dict):
f = [False for _ in xrange(n)]
trace = [[False] * n for _ in xrange(n)]
for i in xrange(n):
trace.append([])
if s[:i+1] in dict:
f[i] = True
trace[0][i] = True
Expand Down

0 comments on commit 23ee149

Please sign in to comment.