Problem 42673. Longest Collatz Sequence
40.48% Correct | 59.52% Incorrect
Last Solution submitted on Mar 22, 2023
li haitao on 26 Oct 2018
Please try to solve a harder version "Problem 44448. Project Euler: Problem 14 Longest Collatz sequence"
Problem Recent Solvers78
Make a run-length companion vector
Flip the vector from right to left
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
More from this Author43
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!