140. Word Break IIHard
Given a string
sand a dictionary of stringswordDict, add spaces insto construct a sentence where each word is a valid dictionary word. Return all such possible sentences in any order.Note that the same word in the dictionary may be reused multiple times in the segmentation.
- Problem
- Solutions