Mental Model
We want to check if a sentence can be split into valid words from a dictionary. We try breaking the sentence at every position and see if the parts are valid.
Analogy: Imagine you have a long chain of beads with letters. You want to cut the chain into smaller pieces so that each piece is a known word, like cutting a necklace into known words.
sentence: "leetcode" Dictionary: ["leet", "code"] Initial: "l" -> "e" -> "e" -> "t" -> "c" -> "o" -> "d" -> "e" We try cuts: "leet" | "code" If both parts are in dictionary, success.
