Code
Loading editor...
Tap Analyze to see visualization
Click Analyze to visualize
See step-by-step execution, variables, and output
Variables
Run code to see variables
Output
Console output will appear here
Click Analyze to visualize
See step-by-step execution, variables, and output
Run code to see variables
Console output will appear here
Store all words in trie. For wildcard '.', branch over every child at that trie depth with DFS/backtracking.
Literal words follow a single path. Wildcards branch to all children, which is equivalent to checking every matching character transition at that level.
Updated Feb 2026