GoalScope — word_break (Qwen2.5-Coder-32B-Instruct) — hover a token to see the patched verbalization
↵
<code>↵
def word_break(s, word_dict):↵
"""Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequence of one or more dictionary words."""↵
dp = [False] * (len(s) + 1)↵
dp[0] = True↵
for i in range(1, len(s) + 1):↵
for j in range(i):↵
if dp[j] and s[j:i] in word_dict:↵
dp[i] = True↵
break↵
return dp[len(s)]↵
</code>