author | Christian Urban <urbanc@in.tum.de> |
Thu, 06 Dec 2018 13:15:28 +0000 | |
changeset 229 | 5549016ab10f |
parent 199 | 54befaf23648 |
child 281 | 87b9e3e2c1a7 |
permissions | -rw-r--r-- |
125 | 1 |
|
2 |
||
199 | 3 |
assert(collatz_max(10) == (19, 9)) |
125 | 4 |
|
199 | 5 |
assert(collatz_max(100) == (118, 97)) |
125 | 6 |
|
199 | 7 |
assert(collatz_max(1000) == (178, 871)) |
125 | 8 |
|
199 | 9 |
assert(collatz_max(10000) == (261, 6171)) |
125 | 10 |
|
199 | 11 |
assert(collatz_max(100000) == (350, 77031)) |
125 | 12 |
|
199 | 13 |
assert(collatz_max(1000000) == (524, 837799)) |