Solution of this problem

Given an integer n, find the total number of positive integers, with the odd digit count, less than n.
For example, if n is 786, the answer would be 9(1-digit numbers) + 687(3-digit numbers).

Examples :
total_positive_odd_digit_count(786) -> 696
total_positive_odd_digit_count(45) -> 9

hi @aishnee3sapra_80178610ab2d7d84,
refer here https://www.geeksforgeeks.org/find-the-number-of-positive-integers-less-than-or-equal-to-n-that-have-an-odd-number-of-digits/

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.