1903 Largest Odd Number in String
Techniques Used
Greedy
Approach
In order to find the largestOddNumber that can be formed using a substring,
we start by looking from the end of the string for an odd digit, and mark such index as lastIndex and break out of the for loop
then the s...
raahulsaxena.hashnode.dev1 min read