Please try to solve a harder version "Problem 44448. Project Euler: Problem 14 Longest Collatz sequence"
https://ww2.mathworks.cn/matlabcentral/cody/problems/44448
Create a cell array out of a struct
568 Solvers
Check if number exists in vector
5070 Solvers
Permute diagonal and antidiagonal
231 Solvers
566 Solvers
212 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!