Skip to content

Commit ed6431c

Browse files
authored
Update word-break-ii.py
1 parent 2cd5d4f commit ed6431c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/word-break-ii.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Time: O(n * l^2 + n * r), l is the max length of the words,
22
# r is the number of the results.
3-
# Space: O(n)
3+
# Space: O(n^2)
44
#
55
# Given a string s and a dictionary of words dict,
66
# add spaces in s to construct a sentence where each word is a valid dictionary word.

0 commit comments

Comments
 (0)