If I took all the numbers from one to one billion:
- How many of them contain at least one '1'?
- If I wrote them out in one long line, how many 1 digits would there be?
(In reply to
Possible Solution by Dustin Smith)
How long did your program run ?
By using recursive logic, I got mine to run in less than a second.
|
Posted by Penny
on 2004-07-31 07:19:12 |