A worked example: many words on one grid
The prompt: given a grid of letters and a list of words, return every word that can be spelled along a path of cells that share a side, using no cell twice in one word. This is LeetCode's Word Search II, the many-words version of the word search question on Netflix's list (1 source).
1. Clarify. Can two words share cells? Yes, each word is its own path. Report a word once even if the grid spells it twice, and return them sorted. How big? Say a 6 by 6 grid and up to 100,000 words. Those sizes pick the design.
2. The obvious answer. Run the depth-first-search lesson's one-word grid search once per word. It's correct and already written.
Its cost grows with the number of words. And every word that starts with ca re-walks the same ca paths as every other one.