Available question text
Given a string where each lowercase letter that appears does so exactly twice and a 26-length array mapping 'a'..'z' to required counts, verify that for every letter present the number of characters between its two occurrences equals distance[letterIndex], returning true iff all such checks pass.
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
No company association
Leetcode 2399. Check Distances Between Same Letters
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source