-
4 Comments
Shouldn't the correct answer for test 2 be 0.08? There are be 16 occurrences of the digit 6 in the first 200 digits. 16/200 = 0.08.
Sorry for that, I have corrected the mistake.
I think this correction is not good. the 201th digit is 6 so only 15 until 200 (when the first digit is 3 and not only the decimal part)
same problem in test 5. need to be 105. (see solution 1292755 and 1292769)
I agree with Yona that the "corrected" solution is now wrong. There are only 15 occurrences of the digit 6 in the first 200 digits. 15/200 = 0.0750. Similarly, the solution to test 5 should be 105/1000 = 0.1050.
Suggested Problems
1149 Solvers
Replace NaNs with the number that appears to its left in the row.
2440 Solvers
Celsius to Fahrenheit converter
494 Solvers
306 Solvers
5498 Solvers
More from this Author76
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!