Problem 2452 · Medium

Words Within Two Edits of Dictionary

Keep each query that matches some dictionary word with at most two differing letters, checking mismatches and stopping early.

Open the interactive visualisation