Improve collatz_sequence algorithm (#1726)
- Add more doctests and type checking to make sure only natural numbers are used - Simplified the algorithm slightly This new verison is also between 10-15% faster for really long sequences
T
TheSuperNoob committed
1608d75351be2b11b0e1ce891e2f71296f0be24b
Parent: e7041a8
Committed by GitHub <[email protected]>
on 2/6/2020, 9:00:08 PM