Laadin ülesannet…
The Collatz conjecture works like a number game where you keep applying one of two rules. The function steps receives a positive integer number and counts how many steps it takes to reach 1. If the number is even, divide it by 2; if it is odd, multiply it by 3 and add 1.
10164129def steps(number: int) -> int:
Logi sisse, et näha esituste ajalugu
Logi sisseLogi sisse, et kasutada AI mentorit
Logi sisse1016412910000001521517716