Basic Trie Operations pattern
A complete-word marker is important: the path for car also exists inside card, but only the marker tells us whether car was stored.
Difficulty: Medium · Approach: Follow one character path
This is a public lesson preview. Sign in with a Lifetime Pass to open the protected animation, solution, and code.