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

control flow conditionals
control flow loops
exception handling
integers
math
recursion
View all solutions