Word Break

Given a string s and a dictionary wordDict, return whether s can be segmented into a space-separated sequence of one or more dictionary words. Each dictionary word may be reused any number of ti...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: