Available question text
Find the first adjacent pair of distinct digits in the string (scanned left-to-right) such that each digit's total frequency in the entire string equals its numeric value, and return that two-character pair or an empty string if none exists. Digits are '1'–'9' and length is up to 100.
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 3438. Find Valid Pair of Adjacent Digits in String
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source