Word Break II at Twitter
Hard55.1% acceptance
This problem has 100.0% frequency at Twitter.
Problem Description
Given a string `s` and a dictionary of strings `wordDict`, add spaces in `s` to 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.
Read full problem and hintsTopics
Also asked at 13 companies
More Twitter Questions
Regular Expression MatchingHardInteger to RomanMediumValid ParenthesesEasyTrapping Rain WaterHardMultiply StringsMedium
View all Twitter questions