equal
deleted
inserted
replaced
1 |
1 import CW6a._ |
2 |
2 |
3 assert(collatz_max(10) == (19, 9)) |
3 assert(collatz_max(10) == (19, 9)) |
4 |
|
5 assert(collatz_max(100) == (118, 97)) |
4 assert(collatz_max(100) == (118, 97)) |
6 |
|
7 assert(collatz_max(1000) == (178, 871)) |
5 assert(collatz_max(1000) == (178, 871)) |
8 |
|
9 assert(collatz_max(10000) == (261, 6171)) |
6 assert(collatz_max(10000) == (261, 6171)) |
10 |
|
11 assert(collatz_max(100000) == (350, 77031)) |
7 assert(collatz_max(100000) == (350, 77031)) |
12 |
|
13 assert(collatz_max(1000000) == (524, 837799)) |
8 assert(collatz_max(1000000) == (524, 837799)) |