Largest Number in String Problem
Largest Number in String Problem — ExecCode School DSA Practice
Solve the Largest Number in String problem on ExecCode. Free online school DSA practice in Strings - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given the input needed to solve Largest Number in String. Your task is to understand the rule and print the correct answer. You are working on Largest Number in String. Find and print the substring representing the largest numerical value within a given string that contains both letters and digits.
Examples
Input abc123def45ghi6; Output 123. Input abc10def00ghi; Output 10
Constraints
1<=len(S)<=10^4
Practice Largest Number in String free on ExecCode. Browse DSA problems, topic map, and placement guides.