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 2cd5d4f commit ed6431cCopy full SHA for ed6431c
Python/word-break-ii.py
@@ -1,6 +1,6 @@
1
# Time: O(n * l^2 + n * r), l is the max length of the words,
2
# r is the number of the results.
3
-# Space: O(n)
+# Space: O(n^2)
4
#
5
# Given a string s and a dictionary of words dict,
6
# add spaces in s to construct a sentence where each word is a valid dictionary word.
0 commit comments