cs.thefarshad
medium Dynamic Programming

Word Break

Given a string `s` and a dictionary `wordDict`, return true if `s` can be split into a sequence of one or more dictionary words. Example: ("applepenapple", ["apple", "pen"]) → true.

runs in your browser