The counting numbers are written out as one long string: 123456789101112 … What is the 100th digit in the string? Show how you solved it! Show your work.
William Graham, B. Sc., Computer Science, University of Calgary, answered today on Quora. First, he solved with Python script, and then he said, “It’s easily verified by splitting the string into lines of 10 digits each, and looking at the tenth digit of the tenth line.”
The answer is 5.
0 Comments
Leave a Reply. |
Categories
All
Archives
September 2024
|