Track JavaScript (Legacy)
JavaScript (Legacy) track

Collatz Conjecture

An exercise from the JavaScript (Legacy) track
easy

About this exercise

Calculate the number of steps to reach 1 using the Collatz conjecture

algorithms
control flow conditionals
control flow loops
integers
mathematics
recursion
View all solutions