Return the largest-valued odd integer (as a string) that is a non-empty substring of num.
LeetCode 1903. Largest Odd Number in String https://leetcode.com/problems/largest-odd-number-in-string/
In this problem we are looking to return the largest odd integer
in the specified num
string.
If integersted in my comments and approach, I invite you to read the following post in my blog:
https://www.johncanessa.com/2021/06/30/largest-odd-number-in-string/
Keep in mind that one of the best ways to learn is to read and experiment. Remember that practice makes perfect.
Enjoy;
John