Please try to solve a harder version "Problem 44448. Project Euler: Problem 14 Longest Collatz sequence"
https://ww2.mathworks.cn/matlabcentral/cody/problems/44448
Find common elements in matrix rows
1266 Solvers
1995 Solvers
506 Solvers
Flip the main diagonal of a matrix
509 Solvers
Cell Counting: How Many Draws?
597 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!