23/35
Part 6 of 7 · The worked exampleLearn

Trace it on a small grid: a path dies as soon as no word goes on

4. Trace it. The grid is passed one row per string, ["tarp", "ento", "aesl"]. Here it is, with the cells of four of the words found:

The grid, and the path of each word
grid
tarpentoaesl
tarp
tarpentoaesl
tea
tarpentoaesl
tents
tarpentoaesl
stop
tarpentoaesl

tent is the first four cells of tents. pots and top run the same cells as stop, and sea runs along the bottom row.

lamp never starts. The one l sits in the bottom-right corner, next to o and s, and the trie wants an a after l.