This commit is contained in:
Vitor Oliveira 2021-09-03 12:49:12 -07:00 committed by GitHub
parent ef00820c02
commit a09e042c4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ def collatz_conjecture(number)
while number > 1
if number.even?
number /= 2
nums.push number
nums.push(number)
else
number = 3 * number + 1
nums.push(number)