Calculate the number of non-bouncy numbers less than a googol. >>> solution(6) 12951 >>> solution(10) 277032
(num_digits: int = 100)
| 61 | |
| 62 | |
| 63 | def solution(num_digits: int = 100) -> int: |
| 64 | """ |
| 65 | Calculate the number of non-bouncy numbers less than a googol. |
| 66 | >>> solution(6) |
| 67 | 12951 |
| 68 | >>> solution(10) |
| 69 | 277032 |
| 70 | """ |
| 71 | return non_bouncy_upto(num_digits) |
| 72 | |
| 73 | |
| 74 | if __name__ == "__main__": |
no test coverage detected