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.
Keep each query that matches some dictionary word with at most two differing letters, checking mismatches and stopping early.