← Questions

Word break

0
MetaAmazonMicrosoftCodingLast asked Aug 2026

Return whether a string can be split into a sequence of words from a dictionary, where words may be reused. Give the dynamic programming solution and its cost.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding