author | Christian Urban <urbanc@in.tum.de> |
Tue, 20 Nov 2018 14:31:14 +0000 | |
changeset 212 | 4bda49ec24da |
parent 210 | 63a1376cbebd |
child 267 | 9e0216756771 |
permissions | -rw-r--r-- |
158 | 1 |
|
2 |
||
210 | 3 |
assert(collatz_max(10) == (19, 9)) |
158 | 4 |
|
210 | 5 |
assert(collatz_max(100) == (118, 97)) |
158 | 6 |
|
210 | 7 |
assert(collatz_max(1000) == (178, 871)) |
158 | 8 |
|
210 | 9 |
assert(collatz_max(10000) == (261, 6171)) |
158 | 10 |
|
210 | 11 |
assert(collatz_max(100000) == (350, 77031)) |
158 | 12 |
|
210 | 13 |
assert(collatz_max(1000000) == (524, 837799)) |
158 | 14 |
|
212 | 15 |
//assert(collatz_max(2) == (1, 2) || collatz_max(2) == (0, 1)) |
16 |
assert(collatz_max(2) == (1, 2)) |
|
210 | 17 |
assert(collatz_max(77000) == (339, 52527)) |