Problem 44784. Project Euler: Problem 14 Longest Collatz sequence(harder version)
@ Binbin Qi
Why not setting the upper time limit?
What is the running time of your solution on cody computer?
Please print the variable "t" to help to profile.
@li haitao, I have fix the code, and you should see my running time.
Almost same with you. I tried many times, but could not speed up any
Want to see some faster solutions in the future.
Problem Recent Solvers3
Given a window, how many subsets of a vector sum positive
Find third Side of a right triangle given hypotenuse and a side. No * - or other functions allowed
Count letters occurence in text, specific to words with a given length.
More from this Author17
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!