Available question text
Given equal-length lowercase words, return all queries that can be turned into some dictionary word with at most two letter substitutions — equivalently, whose Hamming distance to at least one dictionary word is ≤ 2. Check each query against dictionary words and count mismatches (early exit when >2) to decide inclusion.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
Google
Leetcode 2452. Words Within Two Edits of Dictionary
Reported May 21, 2026 · 1 source report
STAFF
Source snapshot: Nov 12, 2026
View source