Available question text
Extract the distinct digits from an alphanumeric string and return the second-largest digit value (or -1 if fewer than two distinct digits exist). The string length is ≤500 and contains only lowercase letters and digits.
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
Spotify
Leetcode 1796. Second Largest Digit in a String
Reported Mar 23, 2025 · 2 source reports
MID_LEVEL
Source snapshot: Nov 12, 2026
View source