Medium
Given a string s and a dictionary of strings wordDict, return true if s can be segmented into a space-separated sequence of one or more dictionary words. A word may be reused.
Input: s = "leetcode", wordDict = ["leet","code"] Output: true
Input: s = "catsandog", wordDict = ["cats","dog","sand","and","cat"] Output: false