Hello and welcome to the challenge!
Write a code which receives a string with digits and counts all odd numbers included in its substrings.
solve('3583') = 7, because we have 7 odd substrings:
- string consisting of digits
- amount of odd substrings of the given string
0 < length of the given string < 1000
Did you like this challenge and would like to try your hand at some interesting big programming competitions? Check what’s all over the news in tech world in May 2019 in our article with upcoming IT Conferences, Hackathons and Online Challenges in May 2019.
Have fun and good luck! :)