Second Largest Digit in a String Problem
Second Largest Digit in a String Problem — ExecCode Easy DSA Practice
Solve the Second Largest Digit in a String problem on ExecCode. Free online easy DSA practice in Hashing. Write and run code in Java, C++, Python — no signup required to run.
Description Given an alphanumeric string s, return the second largest numerical digit that appears in s , or -1 if it does not exist. An alphanumeric string is a string consisting of lowercase English letters and digits. Examples Example 1 Input: s = "dfa12321afd" Output: 2 Expl…
Practice Second Largest Digit in a String free on ExecCode. Browse more ExecCode DSA problems.