word_break.php
PHP 8.5
Not run yet
+ 7 hidden
Input
s = "paintpaintbrush" words = ["brush", "paint", "pain", "rush"]
Expected
true
paint + paint + brush covers the whole string, using paint twice.