marking1/collatz_test2.scala
author Christian Urban <urbanc@in.tum.de>
Wed, 16 Jan 2019 12:24:47 +0000
changeset 254 cc0154804096
parent 212 4bda49ec24da
child 267 9e0216756771
permissions -rw-r--r--
updated



assert(collatz_max(10) == (19, 9))

assert(collatz_max(100) == (118, 97))

assert(collatz_max(1000) == (178, 871))

assert(collatz_max(10000) == (261, 6171))

assert(collatz_max(100000) == (350, 77031))

assert(collatz_max(1000000) == (524, 837799))

//assert(collatz_max(2) == (1, 2) || collatz_max(2) == (0, 1))
assert(collatz_max(2) == (1, 2))
assert(collatz_max(77000) == (339, 52527))