You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such possible sentences.
3
+
4
+
Note:
5
+
6
+
The same word in the dictionary may be reused multiple times in the segmentation.
7
+
You may assume the dictionary does not contain duplicate words.
0 commit comments