/ The Arena
Prove your engineering skills.
WEEKLY+50 XP
Word Break II
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, comma separated.
Input format: line 1 is s, line 2 is space-separated wordDict.
Join The Arena
Create an account to submit your implementation, test against our containerized CI suite, and climb the global leaderboard.
Create AccountALREADY HAVE AN ACCOUNT? LOG IN