Open junzhang3366 opened 8 years ago
Do we need to call collatz_step at each iteration in collatz(n)?
collatz_step
collatz(n)
Think about it, what is collatz supposed to do? Start by writing out an example by hand and turn what you've done into an algorithm.
collatz
Do we need to call
collatz_step
at each iteration incollatz(n)
?