1903. Largest Odd Number in String
Description
**Input:** num = "52"
**Output:** "5"
**Explanation:** The only non-empty substrings are "5", "2", and "52". "5" is the only odd number.**Input:** num = "4206"
**Output:** ""
**Explanation:** There are no odd numbers in "4206".**Input:** num = "35427"
**Output:** "35427"
**Explanation:** "35427" is already an odd number.ac
Last updated