Commit 0354abf1 authored by Lun Ai's avatar Lun Ai
Browse files

Challenges

parent 32b5d85d
...@@ -25,4 +25,4 @@ solve i j = (i, j, (cycleLength i j)) ...@@ -25,4 +25,4 @@ solve i j = (i, j, (cycleLength i j))
| k `mod` 2 == 0 | k `mod` 2 == 0
= (cycleLength n (k `div` 2)) + 1 = (cycleLength n (k `div` 2)) + 1
| otherwise | otherwise
= (cycleLength (n (k * 3) + 1)) + 1 = (cycleLength n ((k * 3) + 1)) + 1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment